Home
Explore
Exams
Search for anything
Login
Get started
Home
Engineering
Computer Science
cs paper 1
0.0
(0)
Rate it
Studied by 2 people
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Card Sorting
1/20
Earn XP
Description and Tags
Computer Science
Add tags
Study Analytics
All
Learn
Practice Test
Matching
Spaced Repetition
Name
Mastery
Learn
Test
Matching
Spaced
No study sessions yet.
21 Terms
View all (21)
Star these 21
1
New cards
algorithm
a sequence of steps that can be followed to complete a task
2
New cards
computer program
an implementation of an algorithm
3
New cards
decomposition
breaking down a problem into a number of sub-problems
4
New cards
abstraction
the process of removing unnecessary detail from a problem
5
New cards
linear search algorithm
compares the search item against each item in the list one by one
6
New cards
advantages of linear search
simple, no sorting required, good for short lists
7
New cards
disadvantages of linear search
slow, inefficient for long lists
8
New cards
search algorithm
finding a value in a data structure
9
New cards
binary search algorithm
finds the position of the target value within a sorted array by checking the middle value and then discarding half the list each time
10
New cards
advantage of binary search
quick
11
New cards
disadvantages of binary search
list needs to be sorted before searching
12
New cards
Boolean logic
a data type with two values, true or false
13
New cards
sorting algorithm
to order an unordered list
14
New cards
bubble sort
compares each pair in a list and swaps them if they are in the wrong order, repeats until there are no more swaps to be made
15
New cards
advantage of bubble sort
very simple so easy to program
16
New cards
disadvantage of bubble sort
slow for long lists
17
New cards
maximum number of comparisons for bubble sort
n(n-1)/2 comparisons
18
New cards
merge sort
splits a list into sub lists and then merges them back together in order
19
New cards
recursive function
calls itself in its definition
20
New cards
advantage of merge sort
much faster than bubble sort
21
New cards
disadvantage of merge sort
more complex to understand and code because it is recursive
Explore top notes
Week 5 quiz
Updated 417d ago
Note
Preview
Macroevolution
Updated 851d ago
Note
Preview
ADJECTIVES { Interogative adjectives }
Updated 715d ago
Note
Preview
Volcanoes V: Volcanic Explosivity Index and Hazards
Updated 977d ago
Note
Preview
ap euro midterm that idk
Updated 848d ago
Note
Preview
HRE23 - Unit 5 - Love of Neighbour
Updated 227d ago
Note
Preview
(ii)
Updated 199d ago
Note
Preview
AP Calculus BC Ultimate Guide
Updated 778d ago
Note
Preview
Explore top flashcards
OSA 3: Välitön oikeusvaikutus, etusijaperiaate ja jäsenvaltion vahingonkorvausvastuu
Updated 721d ago
Flashcards (26)
Preview
history of psychology - week 2
Updated 787d ago
Flashcards (54)
Preview
latin vocab 26
Updated 798d ago
Flashcards (20)
Preview
HI108R TEE VOCAB
Updated 28d ago
Flashcards (216)
Preview
Ch 2.3 - How successful were attempts to improve international relations from 1924-29?
Updated 554d ago
Flashcards (37)
Preview
English Vocabulary in Use - 32 The animal kingdom
Updated 930d ago
Flashcards (30)
Preview
biology
Updated 543d ago
Flashcards (98)
Preview
In città
Updated 35d ago
Flashcards (34)
Preview