algorithms Flashcards
(11 cards)
what is pseudocode?
a way of clearly showing a programs’ steps without writing in a programming language to make it easier to understand
what goes into rounded rectangles in a flow chart?
start/stop
what goes into parallelogram boxes in a flow chart?
inputs/outputs
what goes into rectangles in a flow chart?
1processes
what go into diamond boxes in a flow chart?
decisions
what is a binary search?
a search algorithm that finds an item in an ordered list
what is the formula for a binary search?
(n+1)/2
what is a linear search?
a search algorithm that finds an item in an unordered list
what is a bubble sort?
sorts an unordered list of items
compares pairs
what is a merge sort?
sorts an unordered list of items
halfs the list repeatedly then orders it
what is an insertion sort?
puts each item in the right place and uses the first item as a starting point