Source: https://bmsit.ac.in/public/assets/pdf/ise/studymaterial/DAA-Notes-Final - Bhavya G.pdf