{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

L4_SymTable - What are Symbol Tables The next Data...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
What are Symbol Tables The next Data Structure that we learn is called a symbol table . Key Value 001 CHAN TAI MAN 002 CHEUNG KA KA 003 YEUNG WING LAM Operations: Look up a value in the table. Enter a value with its associated key. Page 1 of 17
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
What are Symbol Tables The ‘value’ can in fact be composed of a number of values. Key Value x int, addr 2343248, 4 bytes cp char, addr 32934, 4 bytes st object, addr 458340, 4600 bytes Page 2 of 17
Image of page 2
What are Symbol Tables The ‘key’ can in fact be anything. Key Value square, red, (3,4) triangle, yellow, (4,5) circle, blue, (7,9) diamond, green, (5,0) Page 3 of 17
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Symbol Tables Operations z Enter The value for a key is inserted into the table. (If an old value exists for the same key, then the old value will be replaced by the new value.) e 4 of 17 Key Value Note : Users do not (need to) know the position of the value in the table. e n t e r Pag
Image of page 4
Symbol Tables Operations z Look Up Note : Users do not (need to) know how the value for a particular key is found in the table.
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

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