Editing
Data Structures
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Understanding</span> == Data structures represent tradeoffs between '''Time''' (access speed) and '''Space''' (memory usage). '''Linear vs. Non-Linear Structures''': * '''Arrays''': Best for random access (I want the 500th item). Hard to resize or insert in the middle. * '''Linked Lists''': Best for frequent insertions/deletions. Slow to find a specific item because you have to "walk" from the start. * '''Hash Tables''': The "Magic" structure. By turning a name (key) into a number (hash), you can jump directly to the data. This is how high-performance databases work. '''Hierarchical and Network Structures''': * '''Trees''': Used whenever data is nested (folders on your computer, HTML on a webpage). * '''Graphs''': The most flexible structure. Used to model the Internet, social networks (Facebook "friends"), or road maps. '''The Power of Abstraction''': We often talk about "Stacks" or "Queues" as '''Abstract Data Types'''. You can build a Stack using an Array ''or'' a Linked List; the "user" doesn't care about the implementation as long as it follows the "Last-In, First-Out" rule. </div> <div style="background-color: #8B0000; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information