Extra paper 2 Flashcards
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
What is quick sort good for
Ideal for parralel processing environments and large data sets
Why may merge sort use more memory than an insertion sort
*
Merge sort might create a new array each time it splits and merges / often implemented recursively which places additional data on the stack
*
Insertion sort does not use any additional arrays/Insertion sort is an in-place algorithm.
What should you say on a big o question,
what the best/worst case is
What does poassing by reference cause with recursion
It to crash
What can an IDE do with subroutines
Tell you the parameters you need to pass into it
What do IDE’s allow with running the software
Without exiting the software/having to load seperate compiler
Advantages of IDE’s
User friendly for novices
Increase speed of writing
Fewer mistakes
Increase speed of testing / finding errors
Collaborative team working facilitated
Insertion sort is an
In place algo whereas merge is not
What data is used for data mining
Data from databases and large data serts/big data
Data mining can be used to inform
Decisions
Data mining laws
GFPR
Variable watch
Variable watches are used to monitor the value of specific variables during the execution of a program. This helps in understanding how and when the values of those variables change.
Variable watch
Traces are used to record the execution flow of a program over time. This can include function calls, executed statements, and various events that occur during runtim
Do you have a visited column in A*
No