J
justinanthonyhamilton
Hello, everyone. I recently took a class on Data Structures in C++
(using D.S. Malik's C++ Programming: Program Design Including Data
Structures), and while I learned a good about specific data
structures, I felt that the class was a little too rushed and sparse
for my liking. I passed the class with flying colors, but I think it
would be hard for anyone not to do so. I decided to pick up Robert
Sedgewick's Algorithms in C++ 3rd edition to get a better
understanding of the structures and their algorithms
So I am reading through the introduction and I find a few of the
exercises a little annoying. They either seem extremely vague in what
they are expecting, or else they reference a term not decribed in the
previous text is. I know what an "edge" on a tree is because of my
data structures course, but for a book stating that it is "not just
for programmers and computer-science students" I think it would ease
into the subject matter a little better.
Then I run into something that stumps me - there are a few exercises
asking the minimum and/or maximum number of machine instructions
produced by example programs. Maybe I have completely misunderstood
the language, but I thought that C++ produces a different number of
machine instructions based on the computer platform it is on due to
the fact that it is a high level language. Am I completely mistaken?
Is this something I should know?
(using D.S. Malik's C++ Programming: Program Design Including Data
Structures), and while I learned a good about specific data
structures, I felt that the class was a little too rushed and sparse
for my liking. I passed the class with flying colors, but I think it
would be hard for anyone not to do so. I decided to pick up Robert
Sedgewick's Algorithms in C++ 3rd edition to get a better
understanding of the structures and their algorithms
So I am reading through the introduction and I find a few of the
exercises a little annoying. They either seem extremely vague in what
they are expecting, or else they reference a term not decribed in the
previous text is. I know what an "edge" on a tree is because of my
data structures course, but for a book stating that it is "not just
for programmers and computer-science students" I think it would ease
into the subject matter a little better.
Then I run into something that stumps me - there are a few exercises
asking the minimum and/or maximum number of machine instructions
produced by example programs. Maybe I have completely misunderstood
the language, but I thought that C++ produces a different number of
machine instructions based on the computer platform it is on due to
the fact that it is a high level language. Am I completely mistaken?
Is this something I should know?