FUNDAMENTAL PRINCIPLES AND CONCEPTS OF COMPUTING Flashcards
Set of well-defined instructions for performing a task or solving a problem.
ALGORITHM
Each step is clearly defined.
PRECISION
An algorithm must terminate after a finite number of steps.
FINITENESS
Algorithms take input and produce output.
INPUT AND OUTPUT
Each operation is basic enough to be carried out, in principle, by a human using only paper and pencil.
EFFECTIVENESS
Uses divide-and-conquer to sort elements by partitioning arrays.
QUICKSORT
Divides the list into halves, sorts them, and merges them.
MERGESORT
Efficiently finds an element in a sorted list by repeatedly dividing the search interval in half.
BINARY SEARCH
Checks each element in a list until the target is found.
LINEAR SEARCH
Specialized formats for organizing, processing, retrieving, and storing data.
DATA STRUCTURES
Store elements of the same type in contiguous memory locations.
ARRAY—>FIXED SIZE
Each element points to the next.
LINKED LISTS—>SINGLY LINKED LIST
Each element has pointers to both the next and previous elements.
LINKED LISTS—>DOUBLY LINKED LIST
Elements are added and removed from the same end.
STACKS—>LIFO (Last In, First Out)
Elements are added at one end and removed from the other.
QUEUES—>FIFO (First In, First Out)