fundamentals of algorithms

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/35

flashcard set

Earn XP

Description and Tags

aqa gcse computing

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

36 Terms

1
New cards

what is an algorithm

a sequence of steps that can be followed to complete a task.

2
New cards

what is decomposition

Decomposition means breaking a problem into a number of sub-problems so that each sub-problem accomplishes a task

3
New cards

what is abstraction

Abstraction is the process of removing unnecessary detail from a problem.

4
New cards

what is integer used for

whole number

5
New cards

what is a real used for

adds opperation that work on real numbers

6
New cards

what is a boolean used for

true or false

7
New cards

what is a character used for

individual letters/symbols

8
New cards

what is a string used for

sequence of letters

9
New cards

what is a float used for

decimals

10
New cards

what is the base of a decimal ?

base 10

11
New cards

what is the base of a binary ?

base 2

12
New cards

what is the base of a hexidecimal ?

base 16

13
New cards

why is hexadecimal used instead of binary

larger numbers can be represented are fewer digits

14
New cards

what is a sorting algorithm ?

Sorting algorithms are precise step-by-step instructions that a computer can follow to efficient sort data in massive data sets

15
New cards

2 most common sorting algorthim

  • bubble sort

  • merge sort

16
New cards

what is a merge sort ?

A merge sort is a sorting algorithm divides a dataset into smaller sub-datasets and merging them back together in the correct order

17
New cards

how do you peform a merge sort ? ( 3)

  1. divide data set into individual datasets

  2. merge pairs of subdatas together by comparing the first value in each dataset

  3. repeat step 2 into all merged into one data set

18
New cards

what is a bubble sort ?

A bubble sort is a simple sorting algorithm that starts at the beginning of a dataset and checks values in 'pairs' and swaps them if they are not in the correct order

19
New cards

2 advantages of a merge sort

  • Suitable for large datasets

  • Performs well no matter how unorganised the data is

20
New cards

1 advantages of a bubble sort

  • Simple to understand and implement

21
New cards

2 disadvantages of a merge sort

  • Uses a lot of memory

  • More complex to implement

22
New cards

2 disadvantages of a bubble sort

  • Slow for large datasets

  • Inefficient, as ititerates through the data multiple times

23
New cards

what is a searching algorithm ?

  • Searching algorithms are precise step-by-step instructions that a computer can follow to efficient locate specific data in massive datasets

24
New cards

2 common searching algorithm

  • Binary search

  • Linear search

25
New cards

what is a linear search ?

A linear search starts with the first value in a dataset and checks every value one at a time until a values have been checked

26
New cards

how do you peform a linear search ?

  1. check first value

  2. if its the value your looking for

  3. move to the next value and check

  4. repeat

27
New cards

what is a searching algorithm ?

precise step-by-step instructions that a computer can follow to efficient

locate specific data in massive datasets

28
New cards

2 common searching algorithm

  • binary search

  • linear search

29
New cards

what is a binary search ?

keeps halving a dataset by comparing the target value with the middle value, going

left if smaller,right if bigger, until it finds the value or realises it's not there

30
New cards

should the data be in order for a binary search or linear ?

binary

31
New cards

how do you peform a binary search ?

  1. identify middle value

  2. compare value if its bigger then the one your loooking for

  3. create a new list with the value on the left of the middle value

  4. if its smaller create a new list with the values on the right of the middle value

32
New cards

what is algorithm efficency

is how much time it takes to complete an algorithm

33
New cards

3 examples of compytational thinking

  • Algorithmic thinking

  • Decomposition

  • Abstraction

34
New cards

define decomposition

Decomposition is the process of breaking down a large problem into a set of smaller problems

35
New cards

3 positives of decomposition

  • Smaller problems are easier to solve

  • Each smaller problem can be solved independently of the others

  • Smaller problems can be tested independently

36
New cards

define abstraction

process ofremoving unnecessary details from a problem to focus on the important

features for implementing a solution