Real Deal Flashcards
TCP/IP protocol layering
Application layer: Identifies what protocol needs to be used
Transport layer: Splits up data into packets, numbers them
Network layer: Adds the source and destination IP addresses, routers user IP addresses to forward the packets
Link layer: Adds the MAC address, identifying the Network Interface Cards
Example of protocols
Hypertext Transfer Protocol: Web pages
File Transfer Protocol: Transmission of files over networks
POP3 (Post Office Protocol): Emails
Internet Protocol / Transmission Control Protocol: Transfers packets through networks
How are class identifiers formatted
Multiple elements can be assigned a class, which means they follow a particular style
Defined with .classidentifier {
* features *
}
Complexity for algorithms
Linear: O(n)
Binary: O(log(n))
Qucik sort: O(n^2)
Merge Sort: O(log(N)
Bubble and insertion: O(n^2)
Recursive methods advantages and disadvantages
+ Efficient use of code
+ Tail recursion: Less space is required
- If it calls itself too many times, that could result in stack overflow, causing a crash
- Difficult to trace