100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Summary Arrays & Abstract Data Types £3.49
Add to cart

Summary

Summary Arrays & Abstract Data Types

 16 views  0 purchase
  • Institution
  • OCR

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 c...

[Show more]

Preview 1 out of 3  pages

  • February 7, 2023
  • 3
  • 2022/2023
  • Summary
All documents for this subject (20)
avatar-seller
ripple
🥱
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller ripple. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for £3.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

52355 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy revision notes and other study material for 14 years now

Start selling
£3.49
  • (0)
Add to cart
Added