SlideShare a Scribd company logo
List
A List ADT
List
• Lists are one of the most common
organizing tools people use in their
day-to-day lives.
List
• We have :
• to-do lists,
• grocery lists,
• top-ten lists,
• bottom-ten lists,
• and many other types.
List
• Our computer programs can also use
lists, particularly if we only have a few
items to storein list form.
List
• Lists are especially useful if we don’t
have to perform searches on the items in
the list or put them into some type of
sorted order.
List
• When we need to perform long
searches or complex sorts, lists become
less useful, especially with more complex
data structures.
A List ADT
• In order to design an ADT for a list, we
have to provide a definition of the list,
including its properties, as well as the
operations performed on it and by
it.
A List ADT
• A list is an ordered sequence of data.
Each data item stored in a list is called an
element.
• In JavaScript, the elements of a list can be
of any data type.
A List ADT
• There is no predetermined number
of elements that can be stored in a
list.
• The Limit will be the amount of memory
available to the program using the list.
A List ADT
• A list with no elements is an
empty list.
• The number of elements stored in a
list is called the length of the list.
A List ADT
• You can append an element to the
end of a list.
• or you can insert an element into a list after
an existing element
• or at the beginning of a list.
A List ADT
• Elements are deleted from a list
using a remove operation.
• You can also clear a list so that all of its
current elements are removed.
A List ADT
• The elements of a list are
displayed using either a
toString() operation.
A List ADT
• with a getElement() operation,
which displays the value of the
current element at a position.
A List ADT
• Lists have properties to describe
location. There is the front of a
list and the end of a list.
A List ADT
• You can move from one element of a
list to the next element using the
next() operation.
• you can move backward through a list using
the prev() operation
A List ADT
• You can also move to a numbered
position in a list using the
moveTo(n) operation.
• where n specifies the position to move to.
A List ADT
• The List ADT does not specify a
storage function for a list, but for
our implementation will use an
array named dataStore.
A List ADT

More Related Content

PPTX
Data structures2
PPT
Intro to Lists
PPTX
Lists
PDF
Datastructure 110410094008-phpapp02
PDF
BCA DATA STRUCTURES SEARCHING AND SORTING MRS.SOWMYA JYOTHI
PDF
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
PDF
The List Data Model
PPT
Data structures & algorithms lecture 3
Data structures2
Intro to Lists
Lists
Datastructure 110410094008-phpapp02
BCA DATA STRUCTURES SEARCHING AND SORTING MRS.SOWMYA JYOTHI
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
The List Data Model
Data structures & algorithms lecture 3

What's hot (20)

PPTX
R DATA STRUCTURES 2
PPTX
R DATA STRUCTURES 1
PPTX
General Data structures
PPTX
Data structures and algorithms
PPTX
Lists in Python
PPTX
Data Structures (CS8391)
PPTX
Loops and arrays
PPT
702 present
PPTX
Arrays
PPTX
Array in c
PPSX
Algorithm and Programming (Searching)
PPT
List data structure
PPTX
Understanding the components of standard template library
PPTX
Collections (1)
PPTX
Report cs3 pillos
PPTX
Introduction to data structure
PPT
Searching algorithms
PPTX
Vector list nd sequence
R DATA STRUCTURES 2
R DATA STRUCTURES 1
General Data structures
Data structures and algorithms
Lists in Python
Data Structures (CS8391)
Loops and arrays
702 present
Arrays
Array in c
Algorithm and Programming (Searching)
List data structure
Understanding the components of standard template library
Collections (1)
Report cs3 pillos
Introduction to data structure
Searching algorithms
Vector list nd sequence
Ad

Similar to Javascript ADT - List (20)

PDF
Data structures list
PDF
Lesson 2 - The List ADT.pdf
PPT
lecture 02.2.ppt
PPTX
ALGORITHM ANALYSIS AND LISTS ABSTACTS DT
PPTX
Data structures - unit 1
PPTX
Data Structures - Array presentation .pptx
PPTX
Data structures and Algorithm analysis_Lecture 2.pptx
PPTX
Lists on the pyhton to learn the children more easily on easy codes.pptx
PPTX
MODULE-2.pptx
PPTX
ds bridge.pptx
PDF
Data Structure & Algorithms - Operations
PPTX
Lists Data Structures and Algorithm.pptx
PPTX
DATA STRUCTURE AND COMPUTER ALGORITHMS LECTURE 2
PDF
List , tuples, dictionaries and regular expressions in python
PPTX
Python Data Structures and Algorithms.pptx
PPTX
Python programming
PPTX
Program Practical to operations on Array
PPTX
Lists, Stacks, and Queues: Abstract Data Types
PDF
unit-ids17-180709051413-1.pdf
PPTX
8.DATA STRUCTURES UNIT 1 AND 2 CS3301PPT.pptx
Data structures list
Lesson 2 - The List ADT.pdf
lecture 02.2.ppt
ALGORITHM ANALYSIS AND LISTS ABSTACTS DT
Data structures - unit 1
Data Structures - Array presentation .pptx
Data structures and Algorithm analysis_Lecture 2.pptx
Lists on the pyhton to learn the children more easily on easy codes.pptx
MODULE-2.pptx
ds bridge.pptx
Data Structure & Algorithms - Operations
Lists Data Structures and Algorithm.pptx
DATA STRUCTURE AND COMPUTER ALGORITHMS LECTURE 2
List , tuples, dictionaries and regular expressions in python
Python Data Structures and Algorithms.pptx
Python programming
Program Practical to operations on Array
Lists, Stacks, and Queues: Abstract Data Types
unit-ids17-180709051413-1.pdf
8.DATA STRUCTURES UNIT 1 AND 2 CS3301PPT.pptx
Ad

More from Samuel Santos (11)

PPTX
Javascript stack
PPTX
Javascript Canvas API
PPTX
Javascript - Numbers
PPTX
Javascript - Arrays - mutator functions
PPTX
Javascript - Arrays - accessor functions
PPTX
Javascript - Array - Writing
PPTX
Javascript - Array - Creating Array
PPTX
Javascript - Arithmetic in Javascript
PPTX
Javascript - ADT - List - Implementation
PPTX
Variables
PPTX
Java Stack (Pilha)
Javascript stack
Javascript Canvas API
Javascript - Numbers
Javascript - Arrays - mutator functions
Javascript - Arrays - accessor functions
Javascript - Array - Writing
Javascript - Array - Creating Array
Javascript - Arithmetic in Javascript
Javascript - ADT - List - Implementation
Variables
Java Stack (Pilha)

Recently uploaded (20)

PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Essential Infomation Tech presentation.pptx
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Digital Strategies for Manufacturing Companies
PDF
medical staffing services at VALiNTRY
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
System and Network Administration Chapter 2
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
L1 - Introduction to python Backend.pptx
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
Odoo Companies in India – Driving Business Transformation.pdf
Wondershare Filmora 15 Crack With Activation Key [2025
Design an Analysis of Algorithms II-SECS-1021-03
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PTS Company Brochure 2025 (1).pdf.......
Essential Infomation Tech presentation.pptx
Navsoft: AI-Powered Business Solutions & Custom Software Development
Understanding Forklifts - TECH EHS Solution
Operating system designcfffgfgggggggvggggggggg
Digital Strategies for Manufacturing Companies
medical staffing services at VALiNTRY
VVF-Customer-Presentation2025-Ver1.9.pptx
System and Network Administration Chapter 2
Softaken Excel to vCard Converter Software.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
L1 - Introduction to python Backend.pptx
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Upgrade and Innovation Strategies for SAP ERP Customers

Javascript ADT - List

  • 2. List • Lists are one of the most common organizing tools people use in their day-to-day lives.
  • 3. List • We have : • to-do lists, • grocery lists, • top-ten lists, • bottom-ten lists, • and many other types.
  • 4. List • Our computer programs can also use lists, particularly if we only have a few items to storein list form.
  • 5. List • Lists are especially useful if we don’t have to perform searches on the items in the list or put them into some type of sorted order.
  • 6. List • When we need to perform long searches or complex sorts, lists become less useful, especially with more complex data structures.
  • 7. A List ADT • In order to design an ADT for a list, we have to provide a definition of the list, including its properties, as well as the operations performed on it and by it.
  • 8. A List ADT • A list is an ordered sequence of data. Each data item stored in a list is called an element. • In JavaScript, the elements of a list can be of any data type.
  • 9. A List ADT • There is no predetermined number of elements that can be stored in a list. • The Limit will be the amount of memory available to the program using the list.
  • 10. A List ADT • A list with no elements is an empty list. • The number of elements stored in a list is called the length of the list.
  • 11. A List ADT • You can append an element to the end of a list. • or you can insert an element into a list after an existing element • or at the beginning of a list.
  • 12. A List ADT • Elements are deleted from a list using a remove operation. • You can also clear a list so that all of its current elements are removed.
  • 13. A List ADT • The elements of a list are displayed using either a toString() operation.
  • 14. A List ADT • with a getElement() operation, which displays the value of the current element at a position.
  • 15. A List ADT • Lists have properties to describe location. There is the front of a list and the end of a list.
  • 16. A List ADT • You can move from one element of a list to the next element using the next() operation. • you can move backward through a list using the prev() operation
  • 17. A List ADT • You can also move to a numbered position in a list using the moveTo(n) operation. • where n specifies the position to move to.
  • 18. A List ADT • The List ADT does not specify a storage function for a list, but for our implementation will use an array named dataStore.