Algorithms and Flowcharts Flashcards
what is an algorithm
sequence of steps that can be followed to complete a task
what algorithmic thinking
solving a problem by defining the steps and the sequence needed
how are algorithms presented
what abstraction
removing unnecessary details from a problem
what is decomposition
breaking a problem into subproblems that each represent a specific task
what is a trace tables
shows how values change when an algorithm is carried out
what is a binary search
compare middle item to target item
removes half the list where target cant be in
repeats until target is found
needs to be ordered
what is a bubble sort
one pass goes through a list swapping items when needed
repeats where a single pass happens with no swaps
what is a merge sort
divides list into two until each list has 1 item
combines the list at a time keeping the items ordered
what is an insertion sort
starts with one item in the sorted part and compares items with it