CSC152 2005F, Class 31: Vectors Admin: * Cool Jazz concert tonight (EC) * Cool basketball "game" tonight (EC) * Please load the Vector API in your Web browser * Homework: Finish the lab. Overview: * PAMI of vectors * Using vectors to improve Fibonacci computation * (Possibly): Lab Vectors: * Philosophy: Collect values and efficiently reference them by numeric (non-negative integer) index. * Plus: Expand when necessary. * Plus: A kitchen sink of additional methods. * Applications: Whenever we want to collect data. * Methods: * Expect: Construct, set, get, length, changesize * Implementation (likely) Each vector has an underlying array field. When you change the size, it builds a new array and copies over all the values Setting the size is not efficient, but it is convenient