Professional Documents
Culture Documents
DSAL-211 ASSIGNMENT 1
INSTRUCTIONS
1. Answer ALL questions. Marks will only be awarded for correct answers that demonstrate
independence of thought, thorough research and comprehensive understanding of the
subject
2. This is an individual assignment, hence, you are NOT allowed to work in groups. Content
that demonstrates similarities shall be penalized
3. Submit your work not later than the deadline in Admin Block Room 87 or at the Reception
via Mr. Gondwe’s pigeonhole.
1. Prove the following by mathematical induction:
𝑛
a. ∑𝑘=1 2𝑘 = 2𝑛+1 − 2, 𝑓𝑜𝑟 𝑎𝑙𝑙 𝑛 > 0 [8 marks]
b. 7𝑘 − 1 𝑖𝑠 𝑑𝑖𝑣𝑖𝑠𝑖𝑏𝑙𝑒 𝑏𝑦 6 for all positive integers k [6 marks]
4. Outline an algorithm for detecting a cycle in an undirected graph using depth first search
(DFS) [10 marks]