Giter Club home page Giter Club logo

cppds's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cppds's Issues

Error in pythondsSierpinskiTriangle.html

This comes from having {{ right next to each other -- either insert a space or an invisible space between the two brackets. Otherwise it triggers the template engine to do an insertion.

Need to fix a sentence

Right after Activity, the phrase " Whereas a different data set for the exact same algorithm might have extraordinarily good performance" is not a sentence.

(This is from Mario Nakazawa, I am unsure of the Activity)

Need practical binary heap intro

Chapter 8 in 8.7 starts discussing binary heaps. Following the convention of other chapters, binary heaps need a practical introduction before discussing implementing it.

missing terms in 1.17. Glossary

These definitions need to be added to the first chapter glossary. The definitions also need to be added with the terms, so that all the chapter terms can be referenced by students:

AND
HAS-A Relationship
NOT
OR
abstract data type/ADT
algorithm
array parameters
base class
compiler
computable
data abstraction
data structure
data types
derived classes
function overloading
implementation-independent
information hiding
inheritance hierarchy
int main()
interface
machine code
objects
operator overloading
pass by reference
pass by value
procedural abstraction
programming
strings
subclasses
superclass
truth table
unordered_set
word

Big O seems to be missing something

In the self check, you state " Write two C++ functions to find the minimum number in an array. The first function should compare each number to every other number on the array. O(n2)O(n2). The second function should be linear O(n)O(n)." Do they have to write the program? The questions Q-4 and Q-5 do not seem to have anything to do with O(n^2) and O(n).

Missing terms in chapter 2.13. Glossary

These definitions need to be added to the second chapter glossary. The definitions also need to be added with the terms, so that all the chapter terms can be referenced by students:

contains operation
get item
order of magnitude
set item
("vector" and "worst case" are also out of order, and need to be put in alphabetical order)

activecode error on Introduction page

The following error appears in the activecode element desiredcircuit in Introduction/ObjectOrientedProgrammingDerivedClasses.rst production webpage (scroll all the way down...second to last element on the page)

System Message: ERROR/3 (/home/bmiller/Runestone/web2py/applications/runestone/books/cppds/_sources/Introduction/ObjectOrientedProgrammingDerivedClasses.rst, line 588)

Error in “activecode” directive: maximum 2 argument(s) allowed, 8 supplied.

Also see the virtualcode element near the top of the page:

System Message: ERROR/3 (/home/bmiller/Runestone/web2py/applications/runestone/books/cppds/_sources/Introduction/ObjectOrientedProgrammingDerivedClasses.rst, line 58)

Error in “activecode” directive: maximum 2 argument(s) allowed, 10 supplied.

pull request 90 needs some fixes

The Priority Queues with Binary Heaps Example section looks good overall, but we think there could be more clarity on the line that says "Let us say you were assigned homework's in the following order and you are told the deadlines for those homework's: 3, 10, 5, 8, 7, 2 days respectively".

Another minor thing that can be fixed is that in the Priority Queues with Binary Heaps Example section there are two figures that are titled "figure 1".

3.14 should use Queue ADT rather than pointers

Rewrite this section using good OOD and the queue ADT instead of pointers.

  • The current Printer class needs a major rewrite. All attributes should be private. Pointers should not be needed.
  • Also, rand() is not being used correctly--it is going out too many digits. Check mod().

Warning: This is an issue that requires better design.

Sentence does not add information and something needs to be changed.

Right after Activity 2.2.2.2, the paragraph has the line "Second, they are very consistent no matter what the value of n." but the value n is ONLY 10, so the sentence does not add information. If in the activity there was a call to sumOfN3(1), sumOfN3(10), sumOfN3(100), sumOfN3(1000) and so forth, it would be more evident.

Wording Change in activity 2.3.1

Right above activity 2.3.1, you have "two terms become insignificant in the role that they play in determining the final result", but would it not be more accurate to have it as " two terms become insignificant in the role that they play in determining how many steps are needed"

Clarification after Activity 2.6.1

Right after Activity 2.6.1, it may be informative to say not only is the push_back() function call duration is being measured, but that the time to allocate space is being measured.

len vs length

In Recursion intro-VisualizingRecursion there is a problem with the parameter name (len vs length).

Need wording corrected in several self-checks in Big O Notation Section

Example:

The Big O of a particular algorithm is O(n^2). Given that it takes 2 seconds to do 1 million operations
how long would it take with 2 million inputs? |blank|
10 million?

This should be...

Correction:
The Big O of a particular algorithm is O(n^2). Given that it takes 2 seconds to complete the algorithm with 1 million inputs:
how long would it take with 2 million inputs? |blank|

Knights Tour could use Visualization (9.11-9.14)

Knights Tour is a particularly visual exercise, involving a chess board and a lot of movements and path tracing. I feel it would be useful to have a visual aid to go alongside this exercise.

override vs overload

In section 1.12. Override in Object-Oriented Programming in C++: Defining Classes, in both places where the word "override" appears, the correct word should actually be "overload."

Depth First Search needs Visualization (9.15)

DFS is a particularly in-depth concept that I feel could benefit from an animated example. There are static figures that portray the progress of the search and how it functions, but being able to watch it happen should be helpful as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.