YUNOVA · Python programming

Module 13: DSA Foundations

Notes for offline study · 30 November 2026

Time complexity aur Big O notation

Key points

  • Time complexity बताती है कि data बढ़ने पर काम कितना बढ़ेगा।
  • Big O उसे लिखने का तरीक़ा है।
  • यह सेकंड नहीं नापती, सिर्फ़ बढ़ने का ढंग बताती है।

Python me binary search program

Key points

  • Binary search सिर्फ़ पहले से सजी हुई list पर चलती है।
  • हर बार बीच वाला item देखकर आधी list छोड़ दी जाती है।
  • इसीलिए यह एक-एक करके ढूँढ़ने से कहीं तेज़ है।

Python me bubble sort program

Key points

  • Bubble sort बग़ल वाले दो items की तुलना करके बदलता रहता है।
  • हर पूरे चक्कर में सबसे बड़ा item आख़िर में पहुँच जाता है।
  • समझने में आसान है पर बड़ी list के लिए धीमा है।

Python me recursion se factorial

Key points

  • Recursion में function ख़ुद को ही दोबारा बुलाता है।
  • रुकने की एक शर्त ज़रूरी है, वरना यह कभी नहीं रुकेगा।
  • Factorial में वह शर्त सबसे छोटे number पर आती है।

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.