Lecture 3 - Arrays.pptx - Arrays and Sorting Christopher Mar Reminders • Project pre quizzes should be viewed as homework – Checks your

Lecture 3 - Arrays.pptx - Arrays and Sorting Christopher...

This preview shows page 1 - 14 out of 14 pages.

Arrays and Sorting Christopher Mar
Image of page 1
Reminders Project pre quizzes should be viewed as homework Checks your understanding of project topics Ask questions if you feel unsure about an answer (privately if the question is not general)
Image of page 2
Reminders Project 3 Skeleton code only available after completing pre quiz Pre quiz questions are based on project description information
Image of page 3
Array Data structure Array name is a pointer Memory address of first element Other elements accessed using offset (number of elements from first element)
Image of page 4
Array Data Access Address Contents 0x10000000 12 0x10000004 256 0x10000008 9 0x1000000C 37 0x10000010 654 0x10000014 81 0x10000018 0 0x1000001C 5309
Image of page 5
Piazza: Lecture Question 17 What instruction would you use to read the value from an array element? a) li b) lw c) sw d) move e) None of the above
Image of page 6
Array Data Access Address Contents 0x10000000 12 0x10000004 256 0x10000008 9 0x1000000C 37 0x10000010 654 0x10000014 81 0x10000018 0 0x1000001C 5309 register lw
Image of page 7
Piazza: Lecture Question 18 What instruction would you use to write the value from an array element? a) li b) lw c) sw d) move e) None of the above
Image of page 8
Array Data Access Address Contents 0x10000000 12 0x10000004 256 0x10000008
Image of page 9
Image of page 10
Image of page 11
Image of page 12
Image of page 13
Image of page 14

You've reached the end of your free preview.

Want to read all 14 pages?

  • Spring '08
  • Calliss

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors