3. Data types and data structures

Description

A levels Computing Mind Map on 3. Data types and data structures, created by deepi1k73 on 03/04/2014.
deepi1k73
Mind Map by deepi1k73, updated more than 1 year ago
deepi1k73
Created by deepi1k73 over 10 years ago
25
1

Resource summary

3. Data types and data structures
  1. Data types
    1. Numeric
      1. Advantages
        1. Calculations can be done
          1. Program can alter format
          2. two types
            1. Integer- whole numbers
              1. readl/double/float- decimal numbers
            2. Boolean- only has two options- yes or no
              1. Advantages
                1. validated- less prone to errors
                  1. easy to understand
                    1. les storage space
                    2. Disadvantages
                      1. limited options
                    3. text
                      1. two types
                        1. String- texts or numbers that are stored in the ASCII code
                          1. character- a string with 1 data size
                          2. advantages
                            1. can store anything
                            2. disadvantages
                              1. can't do calculations
                          3. Arrays
                            1. A data structure (group of data) of the same data type grouped under one identifier. All the data stayed contiguously in computer memory
                              1. Dimensions
                                1. 1D- list of data
                                  1. Advanatges
                                    1. Easy to implement
                                    2. Disadvantages
                                      1. limited space
                                        1. same data type
                                      2. 2D- stores in a grid
                                        1. Advanatges
                                          1. good for games
                                            1. Simple to program
                                            2. Disadvantages
                                              1. limited in size
                                                1. same data type
                                              2. can have up to 32D but most people go up to about 3D
                                              3. declaring an array
                                                1. initialise (give a name)- easy to access
                                                  1. size of the array- locations of the memory will be reserved
                                                    1. dimensions- allow position to have meaning
                                                      1. Data type- allow correct data to be stored
                                                    2. Record Format
                                                      1. file- large quantity of data (multiple records
                                                        1. To write:
                                                          1. To read:
                                                          2. Record- info. on one particular thing (multiple fields)
                                                            1. field- one type of information
                                                              1. Key field- unique field- used as an identifier
                                                                1. fixed length- each record has a certain assigned amount of space
                                                                  1. quicker to search
                                                                    1. easier for the computer to store things
                                                                  2. Files
                                                                    1. file access
                                                                      1. Serial- stored in the order it arrives, To add- it just adds on, To delete- copy files to a separate tape leaving the one that needs to be deleted.
                                                                        1. Advantage- quick to store
                                                                          1. Disadvantage- inefficient to locate
                                                                          2. Sequential- puts sorted order depending a key field, To add- copy files to a separate tape leaving the one that needs to be deleted. To delete- same as above just delete unwanted files
                                                                            1. Advantage- search time is quicker
                                                                              1. Disadvantage- longer to write
                                                                              2. Random- has a space and the data is stored anywhere depending on the answer got by a hash calculation done on the key field, To delete- say that it is invalid and then overwrite it.
                                                                                1. Advantage- quick to read and write
                                                                                  1. Disadvantage- inefficient when there is a large amount of data
                                                                                  2. Direct- finds data instantly by using its length
                                                                                    1. Advantage-quick to search
                                                                                      1. Disadvantage-only works with fixed length records
                                                                                      2. Index sequential-like sequential but has an index
                                                                                        1. Advantages and disadvantages same as sequential but more quicker/ longer
                                                                                      3. files: store, retrieve and search,
                                                                                        1. 1. define the stream (computers can know which stream using as a multiple streams are being used) 2. use the stream (read/write) 3. close the stream
                                                                                          1. end of file character- used to show where the end of the file is. allows location of files much easier.
                                                                                          2. estimate file sizes
                                                                                            1. 1. consider the data types for each field and then the amount of space required for each type 2. record size- add up each individual field size 3. file size- multiply previous to the number of files 4.files have extra info.- add 10% on 5.ensure that it is in correct units
                                                                                            2. programing
                                                                                            Show full summary Hide full summary

                                                                                            Similar

                                                                                            A level Computing Quiz
                                                                                            Zacchaeus Snape
                                                                                            PSYA1 - attachment, AQA psychology
                                                                                            T W
                                                                                            Cells And Cell Techniques - Flashcards (AQA AS-Level Biology)
                                                                                            Henry Kitchen
                                                                                            AQA Biology 12.1 cellular organisation
                                                                                            Charlotte Hewson
                                                                                            Biological Psychology - Stress
                                                                                            Gurdev Manchanda
                                                                                            AS Biology Unit 1
                                                                                            lilli.atkin
                                                                                            The Heart
                                                                                            annalieharrison
                                                                                            OCR Chemistry - Atoms, Bonds and Groups (Definitions)
                                                                                            GwynsM
                                                                                            Memory Key words
                                                                                            Sammy :P
                                                                                            AQA Biology 11.2 mitosis
                                                                                            Charlotte Hewson
                                                                                            AQA Biology 11.1 replication of DNA
                                                                                            Charlotte Hewson