SlideShare a Scribd company logo
Data Structures  in Alice
Data Structures in Alice Alice has two built-in data structures that can be used to organize data, or to create other data structures: Lists Arrays
Lists A list is an ordered set of data. It is often used to store objects that are to be processed sequentially.  A list can be used  to create a queue.
Arrays An array is an indexed set of variables, such as  dancer [1] , dancer [2] , dancer [3] ,… It is like a set of boxes that hold things.  A list is a set of items. An array is a set of variables that each  store an item.
Arrays and Lists You can see the difference between arrays and lists when you delete items.
Arrays and Lists In a list, the missing spot is filled in when something is deleted.
Arrays and Lists In an array  an empty variable is left behind when something is deleted.
Lists In an array  an empty variable is left behind when something is deleted.
Lists A list is created in Alice by checking the make a list box when creating a new variable. Make a list  box
Lists The  For all in order  and  For all together  tiles can be used to work with lists.  They are at the bottom of the editor area.
Arrays  Arrays can be created in a similar manner, but more often they are created using the array visualization object from the Alice local gallery. The Array Visualization object  has special properties and  methods for manipulating  the elements in an array.
Arrays  Alice has a set of built-in functions that can be perfomed on

More Related Content

PPTX
Linked list - Data structure
Bhavesh Sanghvi
 
DOCX
C# Collection classes
MohitKumar1985
 
PDF
Python list functions
Mokhtar Ebrahim
 
PPTX
Lists in Python
Md. Shafiuzzaman Hira
 
PPT
Ch 1 alice
Chaffey College
 
PPT
Array1
Rajendran
 
PPT
Data Structures
hmwwfv1
 
PPT
09c-DataStructuresListsArrays.ppt
NagarajuNaveena1
 
Linked list - Data structure
Bhavesh Sanghvi
 
C# Collection classes
MohitKumar1985
 
Python list functions
Mokhtar Ebrahim
 
Lists in Python
Md. Shafiuzzaman Hira
 
Ch 1 alice
Chaffey College
 
Array1
Rajendran
 
Data Structures
hmwwfv1
 
09c-DataStructuresListsArrays.ppt
NagarajuNaveena1
 

Similar to Ch 8 data structures in alice (20)

PPT
09c-DataStructuresListsArrays.ppt
MeenakshiPatel13
 
PPT
09c-DataStructuresListsArrays (1).p with all informationpt
kodakkodak220
 
PPT
Presentation on data structure And algorithms
ShwetaRane28
 
PPT
PPT_DATA STRUCTURE.ppt
YAZATMishra
 
PPTX
data structure and algorithms arrayby anay.pptx
gamtai07
 
PPT
data structures
Owolabi Shalom
 
PPTX
Introduction of Data Structure
Mandavi Classes
 
PPT
Mesics lecture 8 arrays in 'c'
eShikshak
 
PPT
Data structure lecture 1
Kumar
 
PPTX
Circular Linked List.pptx
kasthurimukila
 
PPT
Struktur data ppt
Tri suci Handayani
 
PPT
Data structures
Rokonuzzaman Rony
 
PPT
Lists
Ghaffar Khan
 
PPTX
Data structure chapter 1.pptx
Kami503928
 
PPTX
Unit 2 linear data structures
Senthil Murugan
 
PDF
Data structures list
Vijaya Kalavakonda
 
PPTX
Arrays in Reading.pptx
EdFeranil
 
ODP
(2) collections algorithms
Nico Ludwig
 
PPTX
Any Which Array But Loose
michael.labriola
 
PPT
Arrays
SARITHA REDDY
 
09c-DataStructuresListsArrays.ppt
MeenakshiPatel13
 
09c-DataStructuresListsArrays (1).p with all informationpt
kodakkodak220
 
Presentation on data structure And algorithms
ShwetaRane28
 
PPT_DATA STRUCTURE.ppt
YAZATMishra
 
data structure and algorithms arrayby anay.pptx
gamtai07
 
data structures
Owolabi Shalom
 
Introduction of Data Structure
Mandavi Classes
 
Mesics lecture 8 arrays in 'c'
eShikshak
 
Data structure lecture 1
Kumar
 
Circular Linked List.pptx
kasthurimukila
 
Struktur data ppt
Tri suci Handayani
 
Data structures
Rokonuzzaman Rony
 
Data structure chapter 1.pptx
Kami503928
 
Unit 2 linear data structures
Senthil Murugan
 
Data structures list
Vijaya Kalavakonda
 
Arrays in Reading.pptx
EdFeranil
 
(2) collections algorithms
Nico Ludwig
 
Any Which Array But Loose
michael.labriola
 
Ad

More from Chaffey College (20)

PPT
Strings Objects Variables
Chaffey College
 
PPT
Ruby Chapter 2
Chaffey College
 
PPTX
Social networks and games
Chaffey College
 
PPT
Serious games
Chaffey College
 
PPT
Chapter 05
Chaffey College
 
PPT
Chapter 04
Chaffey College
 
PPT
Chapter 03
Chaffey College
 
PPTX
The games factory 2 alien wars
Chaffey College
 
PPTX
Target markets
Chaffey College
 
PPT
Ch 8 introduction to data structures
Chaffey College
 
PPT
Ch 7 recursion
Chaffey College
 
PPTX
Intro to gml
Chaffey College
 
PPT
Power point unit d
Chaffey College
 
PPT
Power point unit c
Chaffey College
 
PPT
Power point unit b
Chaffey College
 
PPT
Power point unit a
Chaffey College
 
PPT
Gamegraphics
Chaffey College
 
PPT
Gamesound
Chaffey College
 
PPT
Ch 6 text and sound in alice
Chaffey College
 
PPT
Ch 5 boolean logic
Chaffey College
 
Strings Objects Variables
Chaffey College
 
Ruby Chapter 2
Chaffey College
 
Social networks and games
Chaffey College
 
Serious games
Chaffey College
 
Chapter 05
Chaffey College
 
Chapter 04
Chaffey College
 
Chapter 03
Chaffey College
 
The games factory 2 alien wars
Chaffey College
 
Target markets
Chaffey College
 
Ch 8 introduction to data structures
Chaffey College
 
Ch 7 recursion
Chaffey College
 
Intro to gml
Chaffey College
 
Power point unit d
Chaffey College
 
Power point unit c
Chaffey College
 
Power point unit b
Chaffey College
 
Power point unit a
Chaffey College
 
Gamegraphics
Chaffey College
 
Gamesound
Chaffey College
 
Ch 6 text and sound in alice
Chaffey College
 
Ch 5 boolean logic
Chaffey College
 
Ad

Ch 8 data structures in alice

  • 1. Data Structures in Alice
  • 2. Data Structures in Alice Alice has two built-in data structures that can be used to organize data, or to create other data structures: Lists Arrays
  • 3. Lists A list is an ordered set of data. It is often used to store objects that are to be processed sequentially. A list can be used to create a queue.
  • 4. Arrays An array is an indexed set of variables, such as dancer [1] , dancer [2] , dancer [3] ,… It is like a set of boxes that hold things. A list is a set of items. An array is a set of variables that each store an item.
  • 5. Arrays and Lists You can see the difference between arrays and lists when you delete items.
  • 6. Arrays and Lists In a list, the missing spot is filled in when something is deleted.
  • 7. Arrays and Lists In an array an empty variable is left behind when something is deleted.
  • 8. Lists In an array an empty variable is left behind when something is deleted.
  • 9. Lists A list is created in Alice by checking the make a list box when creating a new variable. Make a list box
  • 10. Lists The For all in order and For all together tiles can be used to work with lists. They are at the bottom of the editor area.
  • 11. Arrays Arrays can be created in a similar manner, but more often they are created using the array visualization object from the Alice local gallery. The Array Visualization object has special properties and methods for manipulating the elements in an array.
  • 12. Arrays Alice has a set of built-in functions that can be perfomed on

Editor's Notes

  • #3: The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • #4: The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • #5: The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • #6: The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • #7: The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • #8: The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • #9: The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • #10: The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • #11: The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • #12: The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  • #13: The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.