2025-08-25
Let’s get to know one another…
Name: Professor/Dr Fred Agbo
Office: Ford 209
Office Hours: T, TH 10:30-12:00pm Online or anytime I’m around
Email: fjagbo at willamette.edu
Office Phone: 503-370-6862
40%
25%
15%
20%
int
, float
, char
, boolean
.arrays
, lists
, stacks
, queues
, trees
, graphs
Insertion:
Add a new element to the data structure.Deletion:
Remove an existing element from the data structure.Traversal:
Access each element of the data structure systematically.Searching:
Find the location of a specific element within the data structure.😎
Data Structure | Best For | Example Use Case |
---|---|---|
Array | Fast access by index, fixed size | Storing scores, pixel data |
Linked List | Frequent insertions/deletions | Undo history, playlist |
Stack | Last-in, first-out (LIFO) | Function calls, browser history |
Queue | First-in, first-out (FIFO) | Print jobs, task scheduling |
Tree | Hierarchical data | File systems, organization charts |
Graph | Relationships/networks | Social networks, maps |
Choose based on your problem’s needs: speed, memory, and operations!
procedural
, object-oriented
, and functional
.Example:
Example:
Example:
Each paradigm offers unique strengths. Python lets you mix and match these styles, so you can write code that is clear, maintainable, and efficient for your needs.