Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Abstract Data Types For each of the following data storage needs, describe which abstract data types you would suggest using. Natural choices would include list,

Abstract Data Types

For each of the following data storage needs, describe which abstract data types you would suggest using. Natural choices would include list, set, map, but also any simpler data types (string, int, double) that you may have learned about before.

Try to be specific, e.g., rather than just saying "a list", say "a list of integers" or "a list of names (strings) and a GPA (double)". If you specify a map please describe what the key and value will be. Also, please give a brief explanation for your choice: we are grading you at least as much on your justification as on the correctness of the answer. Also, if you give a wrong answer, when you include an explanation, we'll know whether it was a minor error or a major one, and can give you appropriate partial credit. Also, there may be multiple equally good options, so your justification may get you full credit.

  1. a data type that allows quick retrieval of the name of a song given the name of a playlist (or album) and the track number
  2. a data type to store the text of the steps of a recipe for how to bake a cake
  3. a data type that associates a file extension with the possible programs that are able to read/open that kind of file
  4. a data type that stores all the TV station identifications (e.g. KABC, KNBC, etc.)

image text in transcribed

Abstract Data Types (ADTs) Place your answers in hw2.txt . For each of the following data storage needs, describe which abstract data types you would suggest using. Natural choices would include list, set , map , but also any simpler data types (string, int, double) that you may have learned about before. Try to be specific, e.g., rather than just saying "a list", say "a list of integers" or "a list of names (strings) and a GPA (double)". If you specify a map please describe what the key and value will be. Also, please give a brief explanation for your choice: we are grading you at least as much on your justification as on the correctness of the answer. Also, if you give a wrong answer, when you include an explanation, we'll know whether it was a minor error or a major one, and can give you appropriate partial credit. Also, there may be multiple equally good options, so your justification may get you full credit. 1. a data type that allows quick retrieval of the name of a song given the name of a playlist (or album) and the track number 2. a data type to store the text of the steps of a recipe for how to bake a cake 3. a data type that associates a file extension with the possible programs that are able to read/open that kind of file 4. a data type that stores all the TV station identifications (e.g. KABC, KNBC, etc.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

Explain the meaning of ergonomics.

Answered: 1 week ago

Question

Question What is an educational benefit trust and how is it used?

Answered: 1 week ago

Question

Question How are VEBA assets allocated when a plan terminates?

Answered: 1 week ago

Question

Question May a taxpayer roll over money from an IRA to an HSA?

Answered: 1 week ago