ES242 · DSA-1
Week 1. Introduction
Logistics
Course Website
https://www.neeldhara.courses/2024-ES242
Google Classroom Code: amsscja
for in-class quizzes, announcements and discussions
Grading Policy
Lab Exams. 10 + 15 points
Midsem and Endsem. 10 + 20 points
In-class worksheets. 20 X 3 (capped at 40) points
Viva. 5 points
The worksheets will be:
google classroom · open book · open notes
no internet · no discussions
theory exam format: TBA
Practice worksheets or mentimeter questions will not be evaluated.
Look at the bottom card of the packet and make a note of it.
Put the top card on the bottom of the packet.
Turn the current top card face-up and place it back on top.
Now, give the packet a cut.
Next, spread off the top two cards, keeping them together…
…turn them over, placing them back on top.
Cut the cards at random again and then turn the top two over.
Give them another cut and turn two over.
Give them a final cut.
Turn the top card over and put it on the bottom of the packet.
Put the current top card on the bottom of the packet.
Finally, turn the top card over and place it back on top.
Spread the cards. What do you see?
Theorem. Let a deck of \(2n\) cards start all face-down.
After any number of turn two and cut at random operations, the following regularity is forced:
The number of face-up cards at even positions equals the number of face-up cards at odd positions.
TOPICS OVerview
Week 1. Introduction | Stable Marriages
Week 2. Sequences and Graphs
Week 3: Dequeues and Cards
Week 4: Euler Tours
Weeks 5, 6, 7: BFS/DFS & Applications
Weeks 10, 11, 12: Trees and Search
Weeks 13, 14: Balanced BSTs
Weeks 8, 9: Spanning Trees and Shortest Paths
DSA1: Introduction
By Neeldhara Misra
DSA1: Introduction
- 308