100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Arrays & Abstract Data Types

Rating
-
Sold
-
Pages
3
Uploaded on
07-02-2023
Written in
2022/2023

Transform your computer science education with our comprehensive guide to Arrays and Abstract Data Types. Designed specifically for the OCR H446 curriculum, this document is the ultimate study tool for anyone looking to excel in computer science. With clear and concise explanations alongside with code examples, this guide covers everything you need to know about arrays and abstract data types to confidently tackle the final year A-Level exams. Whether you're a student, teacher, or self-studier, this document is the key to unlocking your full potential in computer science. Don't miss out on this opportunity to elevate your understanding of these essential concepts and achieve your goals in the field.

Show more Read less
Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Study Level
Examinator
Subject
Unit

Document information

Uploaded on
February 7, 2023
Number of pages
3
Written in
2022/2023
Type
Summary

Subjects

Content preview

🥱
Abstract Data Types & Arrays

Abstract Data Type: A data type created by the programmer themselves.



Tuple: A data structure that is immutable/unchangeable and in sorted order.



Records: A data structure where there is a fixed number of variables, each one is called a field and they each have an
identifier called a field name and a data type. Each field in a record can have a different data type, e.g. character, string,
integer, bool, real/float.


Array:

A data structure that holds a number of data items or elements of the same data type.
An array can be declared using a single identifier and can be used efficiently using iteration.

Each position in an array is identified by an index, the first item in an array is at index 0.

The contents of an array is stored next to each other in the sequence given, in main memory. Therefore each position in
the array can be accessed directly, this is good for high performance algorithms and such.

Values stored in an array are mutable, therefore they can be changed while the program is running like a list and unlike a
tuple.



There are 1D, 2D and 3D Arrays:

This is a 1D array, it can be visualized as a single row of values.


ARRAY spelling_words[10] #Declare an array of 10 elements

spelling_words[0] = "path"
spelling_words[1] = "floor"
spelling_words[2] = "sugar"
spelling_words[3] = "because"
spelling_words[4] = "beautiful"
spelling_words[5] = "clothes"
spelling_words[6] = "whole"
spelling_words[7] = "behind"




Abstract Data Types & Arrays 1
$4.81
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
ripple

Get to know the seller

Seller avatar
ripple The Heathland School
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions