Please enable JavaScript.
Coggle requires JavaScript to display documents.
Computer Science GCSE - Coggle Diagram
Computer Science GCSE
Section 2 - Programming
-
-
Strings
Manipulation
-
-
POSITION(string, character) returns the first position of a character in the string, starting from 0
SUBSTRING(x, y, string) extracts a substring from string starting at x and ending at y
-
-
-
-
-
-
-
-
-
-
Section 6 - Networks
Networks
PANs
they're normally centred around a single person and connect devices such as phones, watches and headphones
PANs often use Bluetooth, which has a strong signal but short range, making it good for connecting close devices
-
PANs don't require any additional hardware, meaning you can also create a PAN on the move
WANs
-
-
-
a WAN can be connected using telephone lines, satellite links or radio links
organizations hire infrastructure from telecommunications companies who own and manage the WAN, as it is much more expensive
LANs
-
-
-
homes schools and businesses have LANs to connect devices, such as printers, smart TVs and PCs
Drawbacks
they can be vulnerable to hacking, and malware can easily spread between devices
-
they can be expensive to set up, as they can require lots of extra hardware
-
Benefits
-
-
user accounts can be stored centrally, so users can log in from any device on the network
-
you can share files easier, as well as collaborate and copy files between devices
Hardware Requirements
Cabling Examples
-
coaxial
tend to be very cheap, as they have a very low bandwidth
surrounded by a plastic layer for insulation and a metallic mesh to provide shielding from outside interference
-
-
routers transmit data between different networks, and are used to connect to the internet. most 'routers' are actually a router, switch and WAP
a network interface card (NIC) is a piece of hardware inside a device that allows it to connect to networks, that exist for both wired and wireless connections
-
Network Topologies
Star Topology
-
pros
they have the best performance as data all goes to a central device, meaning all devices can transmit data at the same time
there are fewer data collisions, resulting in less packet loss
its simple to add new devices to the network, as each one uses a separate cable
if a device fails or a cable is disconnected, the rest of the networks is unaffected
-
cons
-
-
-
-
in a wired network, every device needs to be physically cabled to the switch, making it very expensive
-
Bus Topology
-
without the terminators, the network would suffer interference and be potentially unstable
-
pros
-
-
relatively cheap to set up, as there is much less wiring needed, and the terminators and bus are much cheaper than a switch
cons
data collisions are common, meaning data must be resent, slowing the network down
to avoid collisions, devices must wait for the bus to be available before sending data, slowing it down
the more devices you add, the more common collisions are, making it unsuitable for large networks
-
a lack of terminators at both ends means lots of data is reflected, shutting down the entire network
Wireless Networks
Benefits
its very easy to add new devices, no extra cabling is required
-
convenience, as you can connect automatically, and move around
Drawbacks
-
distance from WAP, interference from other wireless networks, and physical obstructions can all reduce signal strength
WAPs are visible to all devices, making them less secure and allowing hackers to gain access
WLANs
-
-
generally these are referred to as Wi-Fi, however this is actually a specific family of WLAN protocols
-
-
-
to connect wirelessly, devices need the necessary hardware, which most do
if a device doesn't have the necessary hardware, it can still connect using a dongle
-
Network Protocols
Application Layer
FTP
-
used to access, edit and move files between devices on a network
-
HTTPS
-
a more secure version, encrypts all sent and received information
-
-
responsible for things such as file, email and data transfer
Transfer Layer
TCP
-
splits data into numbered packets, so it can be reordered easily upon arrival
communicates with the receiving device to verify correct packet transfer, if not packets are resent
-
-
this makes it better for a reliable connection, where uncorrupted packets is important, e.g. file downloading
it also means that if some packets go missing, the whole file doesn't need to be sent again
UDP
-
the device reads them in the order they arrive, without correctly ordering them
-
this saves time, but you won't know if packets have gone missing in transit
-
this makes it good for a fast efficient transmission, where a hiccup is better than a delay, e.g. video streaming
-
Layers
each layer serves the layer above it, doing the hidden function required
-
-
-
advantages of layers
breaks network communication into manageable pieces, helping devs focus on one area of the network individually
layers are self-contained, so they can be changed without affecting other layers
having a set of rules for each layer forces companies to make compatible, universal hardware and software
Internet Layer
IP
responsible for directing data packets across the Internet or other IP networks, using packet switching
packets are sent between a series of routers, each router reads the header IP address to decide where it goes next
-
direction of data changes depending on traffic, so packets can take different routes
-
if a router receives too many packets, it will prioritise some
-
packet switching is efficient because of the many routes a packet could take, so packets can move quickly, even in heavy traffic
Protocols
they cover how communication starts and ends, how the data is organised, and what the devices do if the data goes missing
-
a protocol is a set of rules that define how devices communicate and how data is transmitted across a network
each packet contains extra information, such as the destination and source addresses and a checksum (to find errors)
Link Layer
Wi-Fi
-
the channels in 2.4 overlap, causing interference with nearby networks on a similar frequency
2.4 has a greater range, but 5 is stronger over a short range
-
-
-
units of data sent on this layer are called frames, not packets
-
Ethernet
mostly the same as Wi-Fi, but is only for wired connections
-
Section 1 - Algorithms
Computational Thinking
-
Abstraction
picking out the important bits of information from the problem, ignoring the specific details that don't matter
Algorithmic Thinking
-
if the steps you take to solve a problem follows an algorithm then it can be reused for similar problems in the future
Writing Algorithms
Pseudocode
-
the idea is that it should clearly follow an algorithm without having to worry about the exact syntax
-
Flowcharts
-
flowcharts can show sequences, selections, iterations or a combination. see CGP for examples
Search Algorithms
Binary Search
Algorithm
compare the search item to the current item, if higher, remove the lower half, vice versa
repeat steps 1 - 3 with your new, smaller list, until you find your item or have searched every item
-
-
Advantages
-
much lower run time for longer, ordered lists
Linear Search
-
Advantages
-
-
just as effective as binary search on small, ordered lists
Sorting Algorithms
Bubble Sort
-
Disadvantages
-
due to this, it is very slow at sorting large lists
-
Algorithm
-
-
if they are incorrectly ordered, swap them
repeat steps 1 - 4 until there are no more swaps in a pass, after each pass, don't include 1 more item from the end
-
Merge Sort
Advantages
for short lists, it has a similar running time compared to bubble sort
it has a very consistent running time, regardless of how pre-sorted the original list was
for large lists, it is much more efficient and faster
Disadvantages
even if the list is already sorted, it still has to go through the whole splitting and merging process
it uses more memory, because it has to create additional lists
Algorithm
Merge pairs of sub-lists, sorting the items correctly each time
-
-
-
-