Essential Computing Concepts: Protocols, Security, and Parallelism

Email Retrieval Protocols: POP3 vs. IMAP

POP3 (Post Office Protocol version 3) and IMAP (Internet Message Access Protocol) are fundamental email retrieval protocols used by email clients to access messages from a mail server.

POP3 (Post Office Protocol version 3)

  • Downloads emails from the server to the local device.
  • Usually deletes them from the server, making emails accessible only on that specific device.
  • Pros: Simple, uses less server storage.
  • Cons: Not ideal for accessing mail from multiple devices.
Read More

Essential Algorithms and Data Structures Reference

Asymptotic Notation (Growth Rates)

  • O(f(n)) – Upper Bound (Worst Case)
  • Ω(f(n)) – Lower Bound (Best Case)
  • Θ(f(n)) – Tight Bound (Exact)

Growth Rate Hierarchy

O(1) < O(log n) < O(n) < O(n log n) < O(n2) < O(2n) < O(n!)

Sorting Algorithms – Time Complexities

AlgorithmBest CaseWorst CaseStableIn-Place
Bubble SortO(n)O(n2)YesYes
Selection SortO(n2)O(n2)NoYes
Insertion SortO(n)O(n2)YesYes
Merge SortO(n log n)O(n log n)YesNo
HeapsortO(n log n)O(n log n)NoYes
QuicksortO(n log n)O(n2)NoYes

Search

Read More

Arduino Programming Essentials: Logic & Control Flow

Digital Read Serial Example

This section presents an Arduino sketch demonstrating how to read a digital input and print its state to the Serial Monitor.


/*
  Leen - Digital Read Serial - May 13
  DigitalReadSerial

  Reads a digital input on pin 2, prints the result to the Serial Monitor

  This example code is in the public domain.

  https://www.arduino.cc/en/Tutorial/BuiltInExamples/DigitalReadSerial
*/
// digital pin 2 has a pushbutton attached to it. Give it a name:
int pushButton = 4;

// the 
Read More

SFML C++ Pong Game Project: Code Breakdown

This document presents the core C++ source code for a simple Pong game built using the SFML multimedia library. It details the implementation of the Ball and Bat classes, along with the main game loop.

Ball Class Implementation

The Ball class manages the game ball’s properties and behavior, including its position, shape, speed, and collision responses.

Ball.h: Class Definition

#pragma once
#include <SFML/Graphics.hpp>

using namespace sf;

class Ball {
private:
    Vector2f m_Position;
    CircleShape 
Read More

ADO Object Reference: Data Access Components

ADO Recordset Object Fundamentals

A Recordset object represents the entire set of records from a table or the result of an executed command. At any time, the Recordset object refers to only one record within the set, known as the current record.

Recordset Object Details

Recordset objects are crucial for manipulating data from a provider. When using ADO, data is almost entirely handled by Recordset objects. All Recordset objects are composed of records (rows) and fields (columns). Depending on the functionality

Read More

Java Temperature Control System with Invariant Checks

Java Temperature Control System Implementation

This document presents the implementation of a Java-based temperature control system, featuring an IncubatorController class with robust invariant checking using the VDM (Vienna Development Method) approach. It includes supporting classes for signals, custom exceptions, and a basic console-based tester.

Signal Class: Defining Temperature Change States

The Signal class acts as an enumeration for the possible actions related to temperature adjustment: increasing,

Read More