ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
AP Computer Science Videos 113 videos
AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?
AP Computer Science 1.4 Standard Algorithms. How many times will mystery be called for mystery(n) for n > 1?
AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?
AP Computer Science 1.4 Standard Data Structures 11 Views
Share It!
Description:
AP Computer Science 1.4 Standard Data Structures. Which of the following is a correct sequential implementation?
Transcript
- 00:04
Here's your shmoop du jour which of the following is a correct
- 00:07
sequential implementation okay here we
- 00:11
go here are your potential answers...
- 00:18
you ready... let's go all right we're being asked to [Boy hitting computer with a hammer]
- 00:20
build an array using a sequential implementation.. A quick glance shows us
Full Transcript
- 00:24
that B and E are the only two options that are sequences the others use loops
- 00:28
to build the array, the loop snippets are a little fancier and more complicated by [People on a rollercoaster]
- 00:32
that with any machine while the more moving parts you have the more things
- 00:35
that go wrong... check these sequences out simply line after line assigning values [Line sequences of power arrays]
- 00:40
to each item in the array using a sequence to build the arrays bar.. Not in the
- 00:44
simplest way to do it but it has drawbacks. Changing its values would be
- 00:48
tedious especially if you had to change the entire array...Imagine having to
- 00:53
extend the array out to a hundred or a thousand integers... [Boy holding thousands of arrays]
- 00:57
okay of the two options B begin populating the array at position zero
- 01:01
while E starts at position one although we've spent the rest of our lives up to
- 01:05
this point learning to count from the number one when it comes to arrays the [Man transforms a white beard while using laptop]
- 01:08
first position is always zero so B it is...
Related Videos
AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?
AP Computer Science 1.4 Standard Algorithms. How many times will mystery be called for mystery(n) for n > 1?
AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?
AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism. Which of the following will satisfy the conditional if statement for boo, str,...
AP Computer Science 4.2 Standard Algorithms. What kind of algorithm is the following?