2. Basic Data Structures¶
Basic Data Structures
- 2.1. Objectives
- 2.2. What Are Linear Structures?
- 2.3. What is a Stack?
- 2.4. The Stack Abstract Data Type
- 2.5. Implementing a Stack in Python
- 2.6. Simple Balanced Parentheses
- 2.7. Balanced Symbols (A General Case)
- 2.8. Converting Decimal Numbers to Binary Numbers
- 2.9. Infix, Prefix and Postfix Expressions
- 2.10. What Is a Queue?
- 2.11. The Queue Abstract Data Type
- 2.12. Implementing a Queue in Python
- 2.13. Simulation: Hot Potato
- 2.14. Simulation: Printing Tasks
- 2.15. What Is a Deque?
- 2.16. The Deque Abstract Data Type
- 2.17. Implementing a Deque in Python
- 2.18. Palindrome-Checker
- 2.19. Lists
- 2.20. The Unordered List Abstract Data Type
- 2.21. Implementing an Unordered List: Linked Lists
- 2.22. The Ordered List Abstract Data Type
- 2.23. Implementing an Ordered List
- 2.24. Summary
- 2.25. Key Terms
- 2.26. Discussion Questions
- 2.27. Programming Exercises