Introduction Flashcards
It is a sequence of unambiguous instructions for solving a problem, i.e., for obtaining a required output for any legitimate input in a finite amount of time.
Algorithm
An algorithm for finding the greatest common divisor.
Euclid’s Algorithm
Fill in the blanks:
In Euclid’s Algorithm, the m and n should be _____.
Nonnegative/ no both zeros
Fill in the blanks:
Euclid’s algorithm is base on _____ application of equality. gcd(m,n) = gcd(n, m mod n)
repeated
It is rearranging of the items of a given list in ascending order.
Sorting
GIve an example of sorting algorithm.
- Selection Sort
- Bubble Sort
- Insertion Sort
- Merge Sort
- Heap Sort
What are the two properties of sorting algorithm.
Stability and In place
An algorithm wich finds a given value called search key in a given set.
Searching
Give an example of searching algorithm.
- Sequential Search
- BInary Search
A _____ is a sequence of characters from an alphabet.
String
A _____ is a collection of points called vertices, some of wich are connected by line segments called edges
graph
GIve an example of Graph Algortihm.
- Graph traversal algorithm
- Shortest-path algorithms
- Topological sorting