01:198:111 Lecture Notes - Lecture 16: Digital Image

103 views2 pages
Verified Note

Document Summary

Arrays are our first introduction to the concept data structures. A data structure is an arrangement of data that enables efficient processing by a program. 1 billion pixel in a digital image. An array is an indexed sequence of the values of the same type. Arrays can be of type int, strings, doubles, or a named variables like. Points or score, as long as the variables are of the same type. Conceptually speaking an example would be an array of ints. 0 index 1st index 2nd index 3rd index 4th index 5th index. The length of an index is n-1, so while the size of the array here is. 6, the index length is n-1 as interpreted by the computer. With an array: much more efficient and easier. Double[ ] a; // this declares the array, i. e. gives the array a space to have, but not use any memory as there is no data for the space to hold.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents