1.4 Data Types, Data Structures and Algorithms Extra Flashcards
Why would a type of encryption be described as symmetric
If the same key is used to encrypt and decrypt the data
Explain why asymmetric encryption is more suited to transactions over the internet than symmetric encyption
Symmetric requires both parties have a copy of the key this couldnt work as eavesdropper may see it. Asymmetric prevents this as there are two keys and the one used to decrpyt it is kept private
When writing boolean expressions what should you do
Refer to the diagrams rather than inputs and outputs as it makes it easier
Difference between arrays and linked lists when it comes to dynamic
Linked list are dynamic whereas arrays are static
Can arrays have elements accessed directed
An array can have any element
accessed directly (i.e. random access)
Can linked lists have elements accessed directly
whereas a linked list needs to be
traversed until the desired element is
found
What is meant by the term linked list
A dynamic data structure where each node consists of a data item and a pointer which points to the next node
Why hash table is better for storing large amounts than a linked list
Linked lists require every node to be checked so will take longer as it gets bigger whereas hash tables enable direct access to location so will take same time no matter how big it is
Advantage of storing words in binary search tree over an array
BS tree can be searched quicker than an array
How can lists and tuples be ordered with more than one data type
Ordered not sorted