In: Computer Science
Question 1
The GCD is the greatest common denominator. Euclid found that if A=Bx +R then GCD(A,B)=GCD(A,R). Prove this is true. Show working
Question 2
The approach Euclid in calculating the GCD used was novel as it was an ________process to solve a complex problem, hence formed the first _______.
Question 3
The difference between a breadth first search (BFS) and a depth first search (DFS) is that in the DFS you traverse all the first branch before proceeding to the next branch.
a) True
b) False
The first definition as graphs need axes
The second definition as more general so covers all graphs
Neither as they are too vague
Question 5
Find a c such that f(n) is O(n2) when f(n) = 1/4 n2 + 15 n + 115. Justify this answer.
Question 6
If f(n)= 10* log n then Big-O of f(n) is O(n)
a) True
b) False