Dynamic vs Static Data Structures: Linear Lists Explained

Dynamic vs. Static Data Structures

Dynamic Structures:

Dynamic data structures are structures that grow as a program runs. A dynamic data structure is a collection of items called nodes, normally records. Unlike an array, which contains space for storing a number of elements, dynamic structures are used for the storage of real-world data that are constantly changing. A typical example of a static data structure is the list of passengers on an airline. If this list is kept in alphabetical order in

Read More

Disk Storage Capacity and File System Calculations

Track Capacity: Number of sectors per track * Bytes per sector

Cylinder Capacity: Number of tracks per cylinder * Track capacity

Drive Capacity: Number of cylinders * Cylinder capacity

Transfer Time: (Number of bytes transferred / Number of bytes on track) * Rotation time

FAT Size: (Number of blocks * 6) / (Block size + 1)

Magnetic Tape

Density: #bytes/inch (bpi)

S: (Block length + gap) * n (# of blocks)

Block Length: (#bytes / bpi = bytes/inch)

Example Calculations

  • 170 sectors/track
  • 16 tracks/cylinder
  • (16
Read More

Understanding NTFS Data Blocks, MFT, and File System Areas

Understanding Data Blocks and Their Contents

Data blocks are pointers to the blocks containing the data for an i-node. The first twelve pointers point to the physical blocks containing data described by the i-node, and the last three pointers contain increasing levels of indirection.

Why is Data Fragmentation Less in ext2 Compared to FAT?

ext2 brings together a number of sequential blocks in a group called a block group (BG). FAT, however, places the file where slots are available, regardless of whether

Read More

Understanding Remote Access, Modems, and Network Devices

Remote Access

A dial-up network device accepts digital data from a PC and converts it into an analog signal (like a phone signal). These signals are received and converted back to digital format.

Modems

Modems modulate (convert binary to analog) and demodulate (convert analog to binary).

  • Internal: Inserted into an expansion slot or integrated into motherboards.
  • External: Has its own power supply and connects to a serial port.

Modem Elements

Modems consist of three circuits: a receiving circuit for digital

Read More

MATLAB: Features and Applications

MATLAB, which stands for “Matrix Laboratory,” is a high-level programming language and interactive environment used primarily for numerical computing, data analysis, algorithm development, and visualization. It offers a range of built-in functions and toolboxes that facilitate mathematical calculations, data manipulation, and graphical representation.

Key Features of MATLAB

  • Matrix Operations: MATLAB is designed to work with matrices and arrays, making it particularly powerful for linear algebra and
Read More

Understanding Computer Fundamentals: A Beginner’s Guide

Converting Binary to Decimal

To convert a binary number to a decimal number, use the following formula: For example, 1101 = 1×2^3 + 1×2^2 + 0x2^1 + 1×2^0 = 8 + 4 + 0 + 1 = 13

Converting Decimal to Binary

To convert a decimal number to a binary number, divide the number and then take the results of the division from bottom to top.

What is a Bit and a Byte?

  • Bit: The smallest unit of information that we can store on a computer (0 or 1).
  • Byte: A group of 8 bits.

Hardware vs. Software

Hardware: The physical

Read More