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

Understanding Computer Storage Devices and Media

Computer science4.27 KB

Storage Devices

Storage Devices: devices that store information. They comprise:

Magnetic Disks

Magnetic disks: Hard drives, floppy disks have large capacity, non-volatile random access, but live slower. It is a closed box, partly comprising:

  • Platters: Stored information resides here.
  • Head: Reads and writes on the platters.
  • Motors: Spin the platters and move the heads.

Components of Magnetic Disks

Platters: Glass, ceramic, or aluminum; joined by a shaft and a motor to rotate at 3600 and 7200 rpm, with a diameter of 5.5 inches.

Heads: Magnetic sensor that reads the charge and a magnet to change the charges for writing.

Spindle (Topic): Support for the disks.

Actuator: The motor that moves the heads.

Structure and Organization

Tracks (Structure-Runs): Concentric...

Continue reading "Understanding Computer Storage Devices and Media" »

Artificial Intelligence: Agents, Environments, and Search Methods

Computer science4.24 KB

Core Concepts of Artificial Intelligence

Defining Key AI Components

  • Artificial Intelligence (AI): A study to perceive, reason, and act. Systems that think like humans, trying to understand how the human mind works. Systems based on rules.
  • Intelligent Agent: An entity capable of perceiving its environment, processing these perceptions, and responding or acting in that environment rationally and appropriately.
  • Prolog: A functional programming language based on logic.
  • Rational Agent: Agent = Architecture + Program. The program depends on the environment in which it operates.

Types of Intelligent Agents and Programs

The agent program dictates how the agent chooses its actions:

  1. Simple Reflex Agent

    Actions depend solely on the current perception and predefined

...
Continue reading "Artificial Intelligence: Agents, Environments, and Search Methods" »

ArcView Project Manager: Essential Functions and Operations

Computer science2.65 KB

ArcView Project Manager Components

The ArcView Project Manager organizes geographic data through several core components:

  • Views: Geographic data organized into interactive maps, each featuring an exclusive table of contents.
  • Tables: Tools to manage and manipulate attribute databases.
  • Statistical Graphs: Features to develop and display data visualizations.
  • Layouts: Flat compositions for printing, incorporating various graphical elements. These "intelligent" map compositions maintain a live link to the underlying data.
  • Scripts: Programmed frames written in Avenue, the native programming language and development environment for ArcView.

Accessing the Legend Editor

You can access the legend editor for a theme using these three methods:

  1. Double-click the
...
Continue reading "ArcView Project Manager: Essential Functions and Operations" »

Essential Computer Networking Terminology and Setup

Computer science51.93 KB

Key Networking Concepts and Components

Definitions of Wireless and Wired Technologies

  • Wi-Fi: Short for Wireless Fidelity, this term names the set of protocols for wireless networking through radio frequency.
  • Bluetooth: A wireless communication protocol that uses radio frequencies and allows a range of up to 10 meters.
  • Switch: A device used in cable network connections that toggles or selects the position to prioritize information at any time, ensuring data packets reach only their intended recipient.
  • Hub: A device that allows the connection of multiple computers using a wired network. Data received are sent to all computers connected to it.
  • PCI Bus: A bus or connector device located on the motherboard. Sound cards, network cards, capture cards, TV
...
Continue reading "Essential Computer Networking Terminology and Setup" »

Linux Software RAID and Apache Web Server Management

Computer science2.56 KB

Software RAID Configuration

  • Use fdisk or similar tools to create partitions with type 0xfd (Linux RAID). Remember to run partprobe.
  • Create and define RAID devices using mdadm: mdadm -C /dev/md0 --chunk=64 --level=5 --raid-devices=3 /dev/sd[b,c,d]1
  • Format each RAID device with a filesystem: mkfs.ext3 -j /dev/md0
  • Test RAID devices:
    • mdadm --detail /dev/md0
    • mdmonitor provides the notification service.

Software RAID Testing and Reclaiming

  • Simulating disk failure: mdadm /dev/md0 -f /dev/sda1
  • Recovering from failure:
    • Replace the failed disk.
    • Rebuild the partitions on the new disk.
    • mdadm /dev/md0 -a /dev/sda1
  • Monitor /proc/mdstat and syslog for error messages.
  • Managing arrays:
    • Disassemble: mdadm -S /dev/md0
    • Assemble: mdadm -A -s

Apache Web Server Management

In RHEL5,...

Continue reading "Linux Software RAID and Apache Web Server Management" »

TCP/IP Transport Layer Quiz: Port Numbers and Flow Control

Computer science4.11 KB

Chapter 4: Transport Layer Concepts

Networking Questions and Answers

  1. Transport Layer Header Analysis (Choose two)

    On the basis of the transport layer header shown in the diagram, which of the following statements describe the established session? (Choose two.)

    1. This is a UDP header.
    2. This contains a Telnet request.
    3. This contains a TFTP data transfer.
    4. The return of this packet will have a remote host acknowledgment number of 43,693.
    5. This is a TCP header.
  2. TCP/IP Well-Known Port Numbers Range

    In the TCP/IP data encapsulation, which range of port numbers identifies all known applications?

    1. 0–255
    2. 256–1022
    3. 0–1023
    4. 1024 to 2047
    5. 49,153 to 65,535
  3. Purpose of Port Numbers in TCP Header

    Why are port numbers included in the TCP header of a segment?

    1. To indicate the correct
...
Continue reading "TCP/IP Transport Layer Quiz: Port Numbers and Flow Control" »

Computer Hardware and Software Components for Performance

Computer science4.77 KB

Computer Hardware and Software Components

Software: Programs and Operating Systems

The machine consists of hardware capable of performing a variety of tasks. Electronic computer components need software to run. The programs will help us process information. A set of orders and instructions constitutes a program. A single program or a set of programs is a software application. We need to keep an operating system running, which allows software to process information using physical components.

Software Categories

  • Operating system — manages hardware and provides services for applications.
  • Application software — processes personal and end-user information.

Physical Components (Hardware)

Physical components include:

  1. CPU (Central Processing Unit) —
...
Continue reading "Computer Hardware and Software Components for Performance" »

Understanding Network Protocols and the OSI Model

Computer science3.48 KB

Understanding Network Protocol Families

While the OSI model defines a comprehensive reference for network study, not every commercial network fully adopts OSI designs. Instead, many networks are built upon specific technologies and proprietary protocols.

NetWare Family

Manufactured by Novell, NetWare was once among the most widely used network systems worldwide. It was renowned for its high performance and capacity for growth.

NetBEUI Family

Microsoft has developed several operating systems that utilize NetBEUI (NetBIOS Extended User Interface) for communications within local area networks. Originally an IBM protocol introduced in 1985, NetBEUI provides a foundational basis for building peer-to-peer networks.

AppleTalk Family

AppleTalk is the network...

Continue reading "Understanding Network Protocols and the OSI Model" »

Understanding Network Devices and Protocols in IT

Computer science3.46 KB

1. Device Type in the Central Area

Which term correctly identifies the device type that is included in the central area?

2. Factory Default Settings

All devices shown in the image have factory default settings. How many broadcast domains are represented in the topology shown?

3. Appropriate Device Type for Interference

The most appropriate type for use in an environment where there are multiple sources of interference (EMI or RFI) corresponds to:

4. PDU in the Transport Layer

The PDU in the transport layer of the OSI model is:

5. Development of IPv6

What is the main reason for the development of IPv6?

6. Application Layer Protocol for File Transfer

What protocol in the application layer is commonly used to facilitate the transfer of files between a client...

Continue reading "Understanding Network Devices and Protocols in IT" »

Memory Paging and Virtual Address Space Management

Computer science3.18 KB

Memory Paging Fundamentals

Paging consists of dividing physical memory into fixed-size sections called frames and logical memory into sections of the same size called pages.

The paging system solved the problem of allocating blocks of equal size using physical memory called page frames.

Page Faults and Replacement

A page fault occurs when referring to a page that is not loaded in any page frame. A page replacement (or page out) is required because the total virtual address space of all processes exceeds the size of physical storage.

Functional Requirements

  • Administration of address space.
  • Address translation.
  • Management of physical memory.
  • Memory protection.
  • Shared memory.
  • Load monitoring system.
  • Mapping files into memory, program execution on remote nodes,
...
Continue reading "Memory Paging and Virtual Address Space Management" »