Presentation is loading. Please wait.

Presentation is loading. Please wait.

A-Level Computing data structures. Objectives Know how the ways data is stored and organised in a computer system Understand how data can be manipulated.

Similar presentations


Presentation on theme: "A-Level Computing data structures. Objectives Know how the ways data is stored and organised in a computer system Understand how data can be manipulated."— Presentation transcript:

1 A-Level Computing data structures

2 Objectives Know how the ways data is stored and organised in a computer system Understand how data can be manipulated and referenced in an array Be able to explain the need for each type of data structure

3 Data Arrays A data structure is a way of organising data so that it can be efficiently processed An array is a type of data structure, and appears as a table or list Used to hold data (e.g. names) of the same type

4 Data Arrays The data items in an array are called its elements. Each element has a subscript to identify it SubscriptName 0Grant 1Tim 2Jake 3Ben 4Liam

5 Data Arrays A one-dimensional array is an array where each item is identified by one subscript. Items are identified as: Name[2] = ‘Jake’ If Name[n] = Grant....what is n?

6 Data Arrays A two-dimensional array is an array where two subscripts are needed to identify each element. JanuaryFebruaryMarch Tim£450£320£520 Grant£430£300£200 Jake£340£285£410 Ben£120£450£400 Liam£250£310£375 Helen£475£300£280 sales[2,1] = £285

7 Data Arrays.....1-D Score Steve45 Mark23 Kelly67 Gary35

8 Data Arrays.....2-D ICTMathsEnglishArt Steve45564567 Mark23624345 Kelly67173637 Gary35342756

9 Data Arrays.....3-D! Year 7 Scores ICTMathsEnglishArt Steve45564567 Mark23624345 Kelly67173637 Gary35342756 Year 8 Scores ICTMathsEnglishArt Steve56766734 Mark45345556 Kelly76173689 Gary45122776 Year 9 Scores ICTMathsEnglishArt Steve89 7898 Mark78936778 Kelly67566889 Gary47122776

10 Records A record consists of a number of fields A field consists of a single data item and these may be of different types In a program, the field name and data type need to be declared For example a record may consist of four fields....

11 Records FieldData Type Student idInteger NameString ClassString Exam AverageReal


Download ppt "A-Level Computing data structures. Objectives Know how the ways data is stored and organised in a computer system Understand how data can be manipulated."

Similar presentations


Ads by Google