umich computer science2 [Notes] Ch.21 Applying Computing to Engineering Problems (Runestone) I. Warm-up: Binary Search 1. Binary search repeatedly divides the search space (the values you are searching through) in half. 2. In the best case scenario, the first value that you look at is the optimal braking coefficient. II. Introduction: Algorithms and Data Structures 1. Algorithms & Data Structures (1) Algorithm: a set of steps to solve a computational problem We need to choose the correc.. 2022. 12. 6. [Notes] Ch.20 More Data Structures (Runestone) EXERCISE) Printing a Vector of int Write a function that prints out the contents of a vector of int. II. Vectors of Vectors 1. Review: declaring the element type of a vector (1) Declare a vector like this: => In addition to the base type of vector, provide the type of elements it will hold. (2) A vector can store elements of any type, as long as they match the type with which it is declared. 2. .. 2022. 12. 6. 이전 1 다음