Algorithms Flashcards
1
Q
Difference between Algo & program ?
A
Algo is for design and program is for implem the design
2
Q
Characteristics of algo ?
A
Input Output Definitness Finitness Effectiveness
3
Q
Analyse an algorithm
A
time space power network transfer CPU registers
4
Q
classement des n
A
1 < logn
5
Q
term that describe Divide and conquer
A
Recursive
6
Q
Divide and conquer algo pattern
A
DAC(P) {
6
Q
Divide and conquer algo pattern
A
DAC(P) { if ( small(P)) { S(P) } else { Divide(P(1),.....,P(K)) Apply DAC(P1)......DAC(Pk) combine(S1,.....,Sk) }