Quiz 1 Flashcards
Algorithm is
An effective method for solving a problem usingba finitenset of instructions
Algorithms used for
Calculations
Data processing
Time complexity is
amount of time required for running an algorithm
Space complexity is
Amount of space in RAM required for running an algorithm
Algorithms characteristics
Time complexity
Space complexity
Completeness
Optimal
Best case complexity
Solving the problem for the best input of size n
Worst case complexity
Solving the problem for the worst input of size n
Average case complexity
Solving the problem on an average
Data Structure is
A particular way of storing and organising data in a computer so it can be used efficiently
Traversing is
Accessing each record exactly once
Sometimes called visiting
Searching is
Finding the location of a record with a given key value
Finding the locations of all records
Inserting is
Adding new records to the structure
Deleting is
Removing a record from the structure
Sorting is
Shifting data into relevant order
Merging is
Combining two different tables into one table