computational thinking

studied byStudied by 4 people
0.0(0)
Get a hint
Hint

what is representational abstraction?

1 / 24

flashcard set

Earn XP

Description and Tags

[ 2.1 ]

25 Terms

1

what is representational abstraction?

  • removing excessive details to represent a problem using only key features

  • must analyse what is relevant to a scenario and simplify a problem based on this

New cards
2

what is data abstraction?

  • details about how data is being stored are hidden

  • programmers can use data structures without knowing how they are implemented

New cards
3

what are layers of abstraction?

  • large, complex problems are split into layers of abstraction

  • each layer has a different role

  • the highest layers are the closest to the user

  • these are usually responsible for providing a user interface

  • the lowest layers perform tasks such as interacting with machine components

New cards
4

what is abstraction by generalisation?

  • grouping parts of a problem by common characteristics to arrive at a hierarchical relationship

  • allows problems to be categorised as being ‘of a particular type’

  • a common solution can be used to solve these problems

New cards
5

what is procedural abstraction?

  • allows programmers to utilise functions without knowing how they’re implemented

  • once a subroutine has been written, it can be reused as a black box

New cards
6

why is abstraction needed?

  • reduces programming time

  • reduces complexity of code (through abstraction by generalisation)

  • reduces the amount of memory/computational power required

  • simplifies the problem so it's easier to solve/understand

  • allows programmers to focus on core aspects of the problem

New cards
7

how is abstraction used for programming languages?

  • low-level languages interact directly with computers but are difficult to write

  • high-level languages abstract the machine code by providing easy-to-use syntax similar to natural language

  • this makes developing programs easier as high-level languages are easier to learn and use than machine code

New cards
8

how is abstraction used in the TCP/IP stack?

  • the TCP/IP model is an abstraction for how networks function

  • each layer deals with a different part of the communication process

  • each layer does not need to know how other layers function

New cards
9

name 4 things to consider when devising an abstract model.

  • what is the problem that needs to be solved by the model?

  • how will the model by used?

  • who will use the model?

  • which parts of the problem are relevant based on the target audience and purpose of the model?

New cards
10

why is it important that programmers identify the inputs and outputs of a problem?

  • all computational problems consist of inputs which are processed to produce an output

  • it is important to understand what information will be needed in the program

    • consider the data structures and data types involved

    • consider the input and output devices

  • by thinking ahead, developers can build programs that are easy and intuitive to use

New cards
11

what are preconditions?

requirements for inputs which must be met before a program can be executed

New cards
12

why are preconditions for inputs used?

  • specifying preconditions means a subroutine expects the arguments passed to it to be valid

  • these can be either…

    • tested for within the code (validating inputs)

    • included in the documentation accompanying the program

  • including preconditions within documentation reduces the length and complexity of the program

New cards
13

what is caching?

the process of storing instructions or data in cache memory after they have been used, as they may be used again

New cards
14

what are the benefits of caching?

  • frequently-accessed content can be quickly loaded, this frees up bandwidth for other tasks on a network

  • prefetching algorithms can predict which instructions are likely to soon be fetched,and load them into cache

  • less time is spent waiting for instructions to be fetched

New cards
15

what are the drawbacks of caching?

  • limited by accuracy of algorithms used

  • larger caches take a long time to search

  • smaller cache sizes limit how much data can be stored

New cards
16

what are reusable program components and why are they used?

  • reusable components include:

    • classes

    • abstract data structures (e.g. queues and stacks)

    • subroutines

  • commonly used functions are often packaged into libraries for reuse

  • teams might create a library of components so they can be reused throughout a project

  • problem decomposition is used to identify where previously-developed program components can be reused

New cards
17

what are the benefits of using reusable program components?

  • more reliable than newly-coded components as they have already been tested

  • saves time, money and resources

New cards
18

what are the drawbacks of using reusable program components?

  • components may need to be modified to be compatible with existing software

  • this can be more costly and time-consuming than developing them from scratch

New cards
19

what is problem decomposition?

  • problem decomposition breaks a large, complex problem down into smaller sub-problems which can be solved more easily

  • this makes projects easier to manage and they can be divided between programmers

New cards
20

what is top-down design?

  • problems are broken down into sub-problems until each sub-problem is a single, self-contained task

  • each sub-problem can then be solved using a single subroutine

  • commonly used to divide a problem between a team

  • subroutines can be developed and tested separately

New cards
21

why is the order in which subroutines are executed significant?

  • programs may require certain inputs to be entered in a particular order by the user before processing can occur

  • validating inputs must occur before the input data is used

  • in some cases, it may be possible for several subroutines to be executed simultaneously

New cards
22

what is concurrent thinking?

  • the process of completing more than one task at a given time

  • this does not always mean you have to be working on multiple tasks at once

  • involves giving ‘slices’ of your time to different tasks.

  • parts of a problem which are related can often be solved concurrently

New cards
23

what is concurrent processing?

  • processes happen at the same time // processes overlap

  • one process can start before another one finishes

  • each process is given a slice of processor time

  • different processes can be executed (in parallel) by different processors/cores

New cards
24

what are the benefits of concurrent processing?

  • more efficient processor use // less idle time for processor // greater throughput

  • long running tasks do not delay short running tasks

  • tasks requiring preconditions can wait and then resume execution 

  • user is able to interact with the computer while other tasks are running

New cards
25

what are the drawbacks of concurrent processing?

  • there is an overhead in coordinating and switching between processes which reduces program throughput

  • not all tasks are suited to being broken up and performed concurrently

New cards

Explore top notes

note Note
studied byStudied by 15 people
... ago
4.5(2)
note Note
studied byStudied by 26 people
... ago
5.0(1)
note Note
studied byStudied by 175 people
... ago
5.0(1)
note Note
studied byStudied by 12 people
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 112 people
... ago
5.0(2)
note Note
studied byStudied by 245 people
... ago
5.0(3)
note Note
studied byStudied by 97 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (179)
studied byStudied by 24 people
... ago
5.0(1)
flashcards Flashcard (28)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 63 people
... ago
5.0(2)
flashcards Flashcard (22)
studied byStudied by 28 people
... ago
5.0(2)
flashcards Flashcard (34)
studied byStudied by 9 people
... ago
5.0(1)
flashcards Flashcard (56)
studied byStudied by 21 people
... ago
5.0(1)
flashcards Flashcard (121)
studied byStudied by 12 people
... ago
5.0(1)
flashcards Flashcard (124)
studied byStudied by 138 people
... ago
5.0(2)
robot