Introduction Flashcards

1
Q

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.

A

Algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

An algorithm for finding the greatest common divisor.

A

Euclid’s Algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Fill in the blanks:
In Euclid’s Algorithm, the m and n should be _____.

A

Nonnegative/ no both zeros

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fill in the blanks:
Euclid’s algorithm is base on _____ application of equality. gcd(m,n) = gcd(n, m mod n)

A

repeated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

It is rearranging of the items of a given list in ascending order.

A

Sorting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

GIve an example of sorting algorithm.

A
  • Selection Sort
  • Bubble Sort
  • Insertion Sort
  • Merge Sort
  • Heap Sort
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the two properties of sorting algorithm.

A

Stability and In place

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

An algorithm wich finds a given value called search key in a given set.

A

Searching

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Give an example of searching algorithm.

A
  • Sequential Search
  • BInary Search
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A _____ is a sequence of characters from an alphabet.

A

String

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A _____ is a collection of points called vertices, some of wich are connected by line segments called edges

A

graph

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

GIve an example of Graph Algortihm.

A
  • Graph traversal algorithm
  • Shortest-path algorithms
  • Topological sorting
How well did you know this?
1
Not at all
2
3
4
5
Perfectly