• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 1 out of 1 pages
Summary

Summary SCC 120 Abstract Data Types Review

Document preview thumbnail
Preview 1 out of 1 pages

This is a comprehensive and detailed summary on;abstract data types for fundamentals of computer science course. An Essential Study resource just for YOU!!

Content preview

Lecture 11 – Abstract Data Types
Abstraction: The removal of layers of detail to simplify a viewpoint.

Encapsulation: The bundling together of methods and data that are used together. Enables data to
be hidden as ‘private’ data types and only accessed through public methods. This a fundamental
principle of OOP and is very useful in



Abstract data types are data structures and types that do not exist as an intrinsic data type or
structure in a language. They must be created by the programmer using other data types and certain
functions to ensure their use.

Most ADTs utilise abstraction to make it easier for the user to use them. An ADT may be provided in
a library in such a way that the user knows how to use the ADT in their code, but not exactly how
they were implemented in the first place. They have an abstracted view of the ADT. This may be
achieved by encapsulating the necessary data and methods in a class.

An example of an ADT is a queue. A queue is a static data structure that may be circular and
operates on a First in, First out basis (FIFO). Data is added to the ‘rear’ and removed from the ‘front’,
both of which are kept track of with pointers. A queue should also be present with the enqueue(),
dequeue() and peek() methods to add and remove data, as well as check what item is at the front of
the queue. There should also be an isEmpty() method to check whether the queue is empty and
size() method to check its size.



Arrays
Arrays aren’t an abstract data type, but they are one of the data types upon which many ADTs can
be built. In some languages, such as Java, the compiler will throw an error if one tries to access
indexes outside the bounds of the array. Others, like C, will not do this and will simply return the
value that happens to be in that index in memory, even though it is not in the array.

Different languages provide different means to loop through arrays. Some languages simply index all
arrays starting from 0. Others let the programmer specify the upper and lower bounds of the array
so that they can be looped though more easily, i.e. position 1 might have an index 18, instead of 0.
Some languages also allow the programmer to use other discrete values, such as characters, as
indexes for and array.

Document information

Study
Unknown
Uploaded on
August 20, 2025
Number of pages
1
Written in
2022/2023
Type
Summary
£12.86

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
anyiamgeorge19
3.4
(5)
Sold
63
Followers
16
Items
2147
Last sold
2 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions