Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
can someone please help me understand the quiz question?
I understand what an algorithm is and etc. but I can't seem to get my head around why we learn about them and data structures?
Joe Sharp19,791 Points
Data structures and algorithms are some of the building blocks that make up programs and applications. Data structures are needed to be able to produce even basic working code. Selecting the proper data structure for a given task is something you will do a thousand times a day in practice.
Algorithms are useful to study for a multitude of reasons. The notable reasons that apply broadly to all programmers that I can think of off the top of my head are:
- Ability to solve a familiar problem more quickly by using or adapting a known algorithm to solve your problem.
- Ability for others to understand your intentions and for you to be able to collaborate effectively with your peers by speaking the same language.
- Ability to recognize for any purpose a known algorithm in code you didn't write so you can understand what it does and why it is there.
These are not exhaustive answers but I hope they help in some way.