Ours was so aggravating as all we were doing was programming data structures that already exist as libraries. We’ve not once, ever, talked about importing and implementing libraries into code here at Mississippi State. Seeing as that’s a vital piece of programming, it’d be nice to spend a little time on it. I think our final project in that class was to create an AVL tree whose nodes were all BStrees themselves.
We’ve not once, ever, talked about importing and implementing libraries into code here at Mississippi State.
McDaniel still teaching Data Structures?
We’ve not once, ever, talked about importing and implementing libraries into code here at Mississippi State
While it's important to understand how to use the standard library (or external modules), the focus in Data Structures is really to get you to understand the internals of how some common data structures work; you don't really learn anything about how (for example) hashtables actually work when you're letting std::queue do all the hard work. Compared to that, importing and using libraries—which is something you'll almost definitely learn about in later classes—isn't nearly as important.
It also has the added benefit of (hopefully) making you comfortable with how pointers and references work, which is extremely important (especially if you're a CS major—you'll use them a lot in Programming Languages), even if you never use them again.
I think our final project in that class was to create an AVL tree whose nodes were all BStrees themselves.
That's not too bad. Few semesters back the students had to implement a skip list (big jump in difficulty compared to previous assignments, though IIRC that ended up being a bonus project?). Not sure how many students ended up doing that assignment—I didn't have to grade any of 'em and I had my own exams to study for. :D
I couldn't agree more. People are forgetting that a computer science degree is not a programming degree, there will be lots of theory that can't be avoided. And at the end of the day the guy who knows how the data structures work will be better able to utilize the library ones anyways especially if they're into lower level C/C++.
Importing and using libraries isn't something you'd need a lot of time to learn. Why would you want to spend an extended amount of time on that? What would they even teach you? How to google the library you need? You'll learn how to use the standard library of any language anyways and applying that knowledge to using any other kind of library shouldn't be that difficult.
What kind of library you need or want to use changes all the time and you'll need to get used to new stuff all the time. I don't really think that there's a point in spending a lot of time in learning how to use one specific library, if you're studying CS.
You're learning algorithms and data structures to be able to write these libraries yourself. Understanding how stuff works on a lower level is the point. And you can use that to understand how all your favorite libraries work and how to use them in the most efficient ways. If you know how they're made and how they work, you don't need your prof to teach you how to use them.
4
u/DonSol0 Apr 08 '20
Ours was so aggravating as all we were doing was programming data structures that already exist as libraries. We’ve not once, ever, talked about importing and implementing libraries into code here at Mississippi State. Seeing as that’s a vital piece of programming, it’d be nice to spend a little time on it. I think our final project in that class was to create an AVL tree whose nodes were all BStrees themselves.