Extra paper 2 Flashcards
(96 cards)
How are flags used in bubble sort
flag is set if a swap is made in bubble sort
flag reset at end of each pass
Linked listrs are
Dynamic
Important way abstraction can be used in a game
abstraction can use symbols to represent elements of problem
What does abstraction increase the chance of
Creating the program succesfully
Depth first
Goes left until it cant and it visits that node and backtracks
Concurrent processing and individual processes, decribe what they are
Threads and each of them has a life line
Concurrent processing what sometimes needs to happen
One needs to start before a second one has finished
Concurret
Simulated multiple processes being carried out same time
Concurrent
Same time/overlapping times
What do programmers need to do with concurrent processingg
Allow multiple threads
Why is insertion preffered over bubble
Insertion sort is usually quicker than bubble sort because it minimizes the number of swaps by shifting elements instead of swapping the m
Declaritive1
Declarative languages are programming languages where you specify what the program should accomplish rather than explicitly outlining how to do it.
Why cannot a binary search work on a linked list
Items do not have to be in specific order for linked list but this is a requirement for binary search
What is autocomplete used for
View identifiers and avoid spelling mistakes whilst also speeding up progress
Colour coding/syntax highgliyinh
Can identify featrues quickly to be used to chech if code is correct
What is an insertion sort particularly useful for
Inserting items into an already sorted list
What are paradigms, dif
Way of writing software
Why does modular save time
Work done in parralel
IO have a cartd on this but WHy is performance modelling used
To simulate the behaviour of a system before it is used
Programming complexity for A* and dij
Minimal but if you can show the effects of each one
More memory locations needed
For local
What does quick sort use
Divide and conquer
What is divide and conquer
Taking two or more identical, smaller sub-problems from a larger problem, solving the sub-problems individually and combining their solutions to solve the original larger problem
Applications of quick sort
Real time situations, medical monitor, aircraft controls and life support systems and defence systems