SlideShare une entreprise Scribd logo
1  sur  12
Data Structures  in Alice
Data Structures in Alice ,[object Object],[object Object],[object Object]
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

Contenu connexe

Similaire à Ch 8 data structures in alice

12_-_Collections_Framework
12_-_Collections_Framework12_-_Collections_Framework
12_-_Collections_FrameworkKrishna Sujeer
 
DSA UNIT II ARRAY AND LIST - notes
DSA UNIT II ARRAY AND LIST - notesDSA UNIT II ARRAY AND LIST - notes
DSA UNIT II ARRAY AND LIST - notesswathirajstar
 
Data structures - unit 1
Data structures - unit 1Data structures - unit 1
Data structures - unit 1SaranyaP45
 
09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.pptNagarajuNaveena1
 
Data Structures
Data StructuresData Structures
Data Structureshmwwfv1
 
09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.pptMeenakshiPatel13
 
JAVA Collections frame work ppt
 JAVA Collections frame work ppt JAVA Collections frame work ppt
JAVA Collections frame work pptRanjith Alappadan
 
Introduction of Data Structure
Introduction of Data StructureIntroduction of Data Structure
Introduction of Data StructureMandavi Classes
 
Data structure & algorithms introduction
Data structure & algorithms introductionData structure & algorithms introduction
Data structure & algorithms introductionSugandh Wafai
 
introduction_dst.pptx
introduction_dst.pptxintroduction_dst.pptx
introduction_dst.pptxHammadTariq51
 
oop lecture framework,list,maps,collection
oop lecture framework,list,maps,collectionoop lecture framework,list,maps,collection
oop lecture framework,list,maps,collectionssuseredfbe9
 
Discuss the characteristics of ArrayList, LinkedList, and Vector and.pdf
Discuss the characteristics of ArrayList, LinkedList, and Vector and.pdfDiscuss the characteristics of ArrayList, LinkedList, and Vector and.pdf
Discuss the characteristics of ArrayList, LinkedList, and Vector and.pdfinfo785431
 
A2003822018_21789_17_2018_09. ArrayList.ppt
A2003822018_21789_17_2018_09. ArrayList.pptA2003822018_21789_17_2018_09. ArrayList.ppt
A2003822018_21789_17_2018_09. ArrayList.pptRithwikRanjan
 
List interface in collections framework
List interface in collections frameworkList interface in collections framework
List interface in collections frameworkRavi Chythanya
 
L11 array list
L11 array listL11 array list
L11 array listteach4uin
 

Similaire à Ch 8 data structures in alice (20)

12_-_Collections_Framework
12_-_Collections_Framework12_-_Collections_Framework
12_-_Collections_Framework
 
DSA UNIT II ARRAY AND LIST - notes
DSA UNIT II ARRAY AND LIST - notesDSA UNIT II ARRAY AND LIST - notes
DSA UNIT II ARRAY AND LIST - notes
 
Data structures - unit 1
Data structures - unit 1Data structures - unit 1
Data structures - unit 1
 
09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt
 
Data Structures
Data StructuresData Structures
Data Structures
 
09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt
 
Array list(1)
Array list(1)Array list(1)
Array list(1)
 
Lecture 2a arrays
Lecture 2a arraysLecture 2a arrays
Lecture 2a arrays
 
JAVA Collections frame work ppt
 JAVA Collections frame work ppt JAVA Collections frame work ppt
JAVA Collections frame work ppt
 
data structures
data structuresdata structures
data structures
 
Introduction of Data Structure
Introduction of Data StructureIntroduction of Data Structure
Introduction of Data Structure
 
F sharp lists & dictionary
F sharp   lists &  dictionaryF sharp   lists &  dictionary
F sharp lists & dictionary
 
Data structure & algorithms introduction
Data structure & algorithms introductionData structure & algorithms introduction
Data structure & algorithms introduction
 
introduction_dst.pptx
introduction_dst.pptxintroduction_dst.pptx
introduction_dst.pptx
 
oop lecture framework,list,maps,collection
oop lecture framework,list,maps,collectionoop lecture framework,list,maps,collection
oop lecture framework,list,maps,collection
 
Discuss the characteristics of ArrayList, LinkedList, and Vector and.pdf
Discuss the characteristics of ArrayList, LinkedList, and Vector and.pdfDiscuss the characteristics of ArrayList, LinkedList, and Vector and.pdf
Discuss the characteristics of ArrayList, LinkedList, and Vector and.pdf
 
A2003822018_21789_17_2018_09. ArrayList.ppt
A2003822018_21789_17_2018_09. ArrayList.pptA2003822018_21789_17_2018_09. ArrayList.ppt
A2003822018_21789_17_2018_09. ArrayList.ppt
 
List interface in collections framework
List interface in collections frameworkList interface in collections framework
List interface in collections framework
 
L11 array list
L11 array listL11 array list
L11 array list
 
Linked List.pptx
Linked List.pptxLinked List.pptx
Linked List.pptx
 

Plus de Chaffey College (20)

Strings Objects Variables
Strings Objects VariablesStrings Objects Variables
Strings Objects Variables
 
Ruby Chapter 2
Ruby Chapter 2Ruby Chapter 2
Ruby Chapter 2
 
Social networks and games
Social networks and gamesSocial networks and games
Social networks and games
 
Serious games
Serious gamesSerious games
Serious games
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Chapter 04
Chapter 04Chapter 04
Chapter 04
 
Chapter 03
Chapter 03Chapter 03
Chapter 03
 
The games factory 2 alien wars
The games factory 2 alien warsThe games factory 2 alien wars
The games factory 2 alien wars
 
Target markets
Target marketsTarget markets
Target markets
 
Ch 8 introduction to data structures
Ch 8 introduction to data structuresCh 8 introduction to data structures
Ch 8 introduction to data structures
 
Ch 7 recursion
Ch 7 recursionCh 7 recursion
Ch 7 recursion
 
Intro to gml
Intro to gmlIntro to gml
Intro to gml
 
Power point unit d
Power point unit dPower point unit d
Power point unit d
 
Power point unit c
Power point unit cPower point unit c
Power point unit c
 
Power point unit b
Power point unit bPower point unit b
Power point unit b
 
Power point unit a
Power point unit aPower point unit a
Power point unit a
 
Gamegraphics
GamegraphicsGamegraphics
Gamegraphics
 
Gamesound
GamesoundGamesound
Gamesound
 
Ch 6 text and sound in alice
Ch 6 text and sound in aliceCh 6 text and sound in alice
Ch 6 text and sound in alice
 
Ch 5 boolean logic
Ch 5 boolean logicCh 5 boolean logic
Ch 5 boolean logic
 

Ch 8 data structures in alice

  • 1. Data Structures in Alice
  • 2.
  • 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

Notes de l'éditeur

  1. 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.
  2. 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.
  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.