{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Notes 1 - Week 0 Review of Interfaces First review the...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Week 0: Review of Interfaces First review the definitions of the title of this course: data structures and algorithms . A Data Type is a set of possible values. Examples: integer and real numbers characters and strings booleans and references A Data Structure is an aggregate (collection) of data types. Examples: arrays record (collection of fields, such as a student record) An algorithm is a set of instructions. Examples: input-process-output with for loop last record check with prime read sequential search bubble sort Structure Theorem Sequence, choice (if) and repetition (while) are enough for solutions to algorithms on a Turing Machine. Task 1: Read page 1 for a good summary of the course. Two types of method outputs : void invoked as a statement mutator method set (setters) valued invoked in an expression (valid for the type) accessor method get (getters) Task 2: Do question #3 on page 9, then # 4-7 on page 11 and check your answers in the appendix.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern