Notes, summaries, assignments, exams, and problems for Computer science

Object Identity, Complex Objects, and Persistent Programming

Computer science2.77 KB

Object Identity Types

There are three main types of object identity:

  • Asset (Data Value as Identity): This form of identity, commonly used in relational systems, utilizes a data value as the identifier. For instance, the primary key value in a tuple uniquely identifies that tuple.
  • Name (User-Defined Identity): This type of identity relies on a name assigned by the user. File systems often employ this approach, where each file has a unique name regardless of its content.
  • Incorporated (System-Generated Identity): This concept integrates identity directly into the data model or programming language, eliminating the need for user-provided identifiers. Object-oriented systems commonly use this method, automatically assigning a unique identifier to each
...
Continue reading "Object Identity, Complex Objects, and Persistent Programming" »

Computer Network Communications

Computer science2.52 KB

Processor Front

The processor front involves three components: source, destination, and message. The source (e.g., a terminal or computer) sends a message. The destination (e.g., another terminal or computer) receives the message. The front-end processor acts as the connection between the source and destination, managing the message transfer. It frees the host processor from communication tasks, handling message routing, transmission monitoring, code translation, and encryption. All data transmitted to or from the host processor are managed through this specialized front-end processor, allowing the host processor to operate more efficiently and focus on application processing.

Types of Communications

A network enables computer connections to share...

Continue reading "Computer Network Communications" »

Mastering GIS Operations: Essential Techniques and Troubleshooting

Computer science4.81 KB

Activating the Buffer Function in GIS

If you want to implement the buffer function and it is not active, what must you do to activate it? You must designate the units as follows:

  • View -> Properties

Cartographic considerations must be made before an operation. The influence or buffer area must be activated as units are working.

Modifying Erroneous Values in a GIS Database

How can you modify an erroneous value in a database?

  1. Table / Start Editing
  2. With the pen tool, change the invalid data.
  3. Table / Stop Editing

Deleting a Field in a GIS Database

How do you delete a field in a database?

  • Edit / Delete Field

Deleting a Record in a GIS Database

How can you delete a record in a database?

  • Edit / Delete Records

Invoking the Clip Command

What is required to invoke...

Continue reading "Mastering GIS Operations: Essential Techniques and Troubleshooting" »

Computer Main Memory Types: RAM and ROM Details

Computer science2.96 KB

1.3 Main Memory Fundamentals

The main memory can be defined as a device capable of storing information. This information is made up of bits, which are the basic elements of memory. A bit is the basic unit of information and can only take two values: (0 or 1). The quantity of bits of information that can be stored in a given memory defines its capacity. Main memory can be distinguished into two main groups: RAM and ROM memory.

RAM (Random Access Memory)

RAM is characterized as being very fast for reading and writing and is volatile (loses data when power is off).

RAM Divisions

  • SRAM (Static RAM): In static memory cells, the storage of information resides in a bistable state; each bit is formed by a continuous bistable order so that the information
...
Continue reading "Computer Main Memory Types: RAM and ROM Details" »

jQuery Functions and HTML Form Management

Computer science15.61 KB

jQuery Selectors

jQuery selectors are used to select and access HTML elements in a webpage. They help in finding elements so that different operations like hiding, showing, styling, and event handling can be performed easily. Selectors in jQuery are similar to CSS selectors and start with the dollar sign $().

Basic Syntax

$(selector).action();

  • $: Defines jQuery
  • selector: Selects HTML elements
  • action(): Performs operations on selected elements

Example: $("p").hide(); (This hides all paragraph elements.)

Types of jQuery Selectors

1. Element Selector

This selector selects elements based on the tag name.

Syntax: $("tagname")

Example: $("h1").hide(); (It hides all <h1> elements.)

  • Selects all elements of the same type
  • Easy to use

2. ID Selector

This selector...

Continue reading "jQuery Functions and HTML Form Management" »

Cryptography Fundamentals: DES, AES, RSA and Security

Computer science6.12 KB

1. DES Structure

DES (Data Encryption Standard) is a symmetric key block cipher used for data encryption. It encrypts 64-bit plaintext using a 56-bit secret key.

DES uses a 16-round Feistel structure. The plaintext first undergoes initial permutation and is divided into left and right halves. In every round, the right half is processed using a round function and XORed with the left half. After 16 rounds, a final permutation is performed to generate the ciphertext.

Features

  • 64-bit block size
  • 56-bit key
  • 16 rounds
  • Uses Feistel structure

Advantages

  • Simple implementation
  • Efficient hardware encryption

Disadvantages

  • Weak against brute-force attacks

2. AES Algorithm

AES (Advanced Encryption Standard) is a symmetric encryption algorithm used to secure digital communication....

Continue reading "Cryptography Fundamentals: DES, AES, RSA and Security" »

Networking Fundamentals: OSI, TCP/IP, and Topologies

Computer science2.75 KB

OSI Model and Its Seven Layers

The OSI (Open Systems Interconnection) Model is a conceptual framework used to understand and standardize how different networking protocols interact and communicate. It consists of 7 layers:

  1. Physical Layer: Hardware transmission (bits).
  2. Data Link Layer: Error-free data transfer (frames).
  3. Network Layer: Path determination and IP addressing (packets).
  4. Transport Layer: End-to-end connection and reliability (segments).
  5. Session Layer: Managing communication sessions.
  6. Presentation Layer: Data translation and encryption.
  7. Application Layer: User interface and network services (HTTP, FTP).

TCP/IP Model Architecture

The TCP/IP Model is a four-layer architecture used for the modern internet.

Explanation of Two Key Layers

  • Application
...
Continue reading "Networking Fundamentals: OSI, TCP/IP, and Topologies" »

Common Types of Computer Malware Explained

Computer science6.04 KB

1. Boot Sector Virus

  • It is a type of virus which infects the master boot record (portion of the hard disk which helps to load the OS) or hard disks.
  • The infected code runs when the system is booted from an infected disk.
  • They infect at a BIOS level (BIOS checks hardware and loads the OS).
  • They use DOS commands (text-based commands used to perform tasks such as file management, disk management, and running programs) to spread to other floppy disks. Since floppy disks are rarely used now, the propagation of boot sector viruses has almost ended.
  • With the boot-sector safeguards in operating systems, boot-sector viruses can no longer infect computers.
  • This virus can infect a computer only during boot-up. Once the system has started and the OS is running,
...
Continue reading "Common Types of Computer Malware Explained" »

Data Integrity and Number Systems in Computing

Computer science9.13 KB

This is a great request covering two fundamental areas of digital communications and computing!
1. Error Detecting and Correcting Codes
Error control codes are essential for ensuring data integrity during transmission or storage by adding redundancy (extra bits) to the original data.
A. Error Detection Codes
These codes can only signal that an error has occurred but cannot determine the location of the error to fix it.
| Code | Principle | Capability |
|---|---|---|
| Parity Check (Simplest) | An extra bit (parity bit) is added to the data word to make the total number of '1's either even (Even Parity) or odd (Odd Parity). | Detects any single-bit error or any odd number of errors. Cannot detect an even number of errors. |
| Checksum | Data is divided...

Continue reading "Data Integrity and Number Systems in Computing" »

Understanding Network Switches, IP Addressing, and Key Terms

Computer science2.96 KB

Network Switches

Managed vs. Unmanaged Switches

Managed Switch: Configurable via software, supports security and communication settings. Used in large networks (enterprise, universities).

Unmanaged Switch: Fixed configuration, hardware-only, cannot be configured.

Ethernet & Speed

  1. Fast Ethernet: 100 Mbps.
  2. Gigabit Ethernet: 1 Gbps.

Ethernet Protocol

Divides data into frames, encapsulates IP addresses, performs error detection.

Ports

  1. Console Port: Connects PC/laptop to configure switch.

Communication Modes

  • Simplex (Half Duplex): One-way communication at a time.
  • Duplex (Full Duplex): Two-way communication simultaneously.

Bandwidth

  1. Maximum transmission speed of a network, determined by signal frequency range.

IP Addressing & Subnets

  1. IP Address: Identifies
...
Continue reading "Understanding Network Switches, IP Addressing, and Key Terms" »