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

Human-Computer Interaction: Sensory Actuators and Semiotics

Computer science18.75 KB

Can also be including labels of actuators
•– Light
•– Sound
•– Vibrators
•– Solenoids
•– Servos
•– Heat/cool pads
& of Sensors
•– Heartbeat
•– Temperature
•– Skin conductance
•– Pressure and bend sensors
•– Accelerometer
•– Microphone
•– Light sensor
•– Distance
•– Gaze (eye-tracker)
•– Buttons
•– Faders


•Galvanic Skin Response (conductivity)
-offers fast response, but only changes have meaning
•Webcam
-- facial expressions directly convey emotional states, but for mobile applications it would be difficult to mount a camera…
•Speech
-- intonation, rhythm, lexical stress, and other features in speech can be used effectively, but universal affect interpretation difficult
...
Continue reading "Human-Computer Interaction: Sensory Actuators and Semiotics" »

Windows Control Panel: System Configuration & Management

Computer science2.09 KB

The Windows Control Panel: Your System's Command Center

The Windows Control Panel is your primary tool for configuring both the software and hardware installed on your computer. It organizes utilities into categories for easy access. Here's a breakdown of some key configuration options:

Add Hardware Wizard

This wizard guides you through installing new devices. Typically, you'll need the installation CD provided by the device manufacturer.

Add/Remove Programs (Programs and Features)

This section displays all programs installed on your computer. Select a program to uninstall it. To install a new program, run the installer file. To add or remove Windows features, click on "Turn Windows features on or off."

Network Connections (Network and Sharing Center)

...
Continue reading "Windows Control Panel: System Configuration & Management" »

Shared Memory in IPC: Features and Creation

Computer science2.8 KB

Common Features of IPC Light Mechanisms

These mechanisms are implemented as a unit and share common features, including:

  • All mechanisms have a table whose entries describe their usage. Each table entry has a numerical key chosen by the user.
  • Each mechanism has a 'get' call to create a new entry or retrieve an existing one. The parameters of this call include a key and a mask of flags. The kernel searches the table for an entry that matches the provided key.
  • If the key is set to IPC_PRIVATE, the kernel occupies the first free entry. Subsequent calls will return this entry until it is released.
  • If the IPC_CREAT flag is active in the mask, the kernel creates a new entry if there is no match for the provided key. If both IPC_CREAT and IPC_EXCL flags
...
Continue reading "Shared Memory in IPC: Features and Creation" »

SPC Control Systems: Centralized vs. Distributed

Computer science2.3 KB

SPC Control System

SPC Control System refers to the method of controlling a switching system.

  • Centralized SPC Control: If a given processor has direct access to all resources of the node and performs all system functions. This usually means the node has a single central computer (doubled for security).
  • Distributed SPC Control: If a processor is in a given state but does not have access to some of the resources and/or is not able to run only some of the functions of the system. In practice, this leads to an existing digital system with a high number of microprocessors that perform the control node as a whole.

Functions of Switching Systems

Switching systems provide power and signaling with user terminals. The user, via the wire pair of the switching...

Continue reading "SPC Control Systems: Centralized vs. Distributed" »

Intel 8086 Microprocessor Architecture Explained

Computer science3.48 KB

Introduction to the Intel 8086

The Intel 8086 is a 16-bit microprocessor introduced in 1978 by Intel Corporation. It is a foundational member of the x86 family of processors, which has significantly influenced the development of modern personal computers. The architecture of the Intel 8086 microprocessor is based on the von Neumann model and consists of several key components, including the Arithmetic Logic Unit (ALU), Control Unit, Registers, Bus Interface Unit, and Clock.

Arithmetic Logic Unit (ALU)

The ALU is responsible for performing arithmetic and logical operations on data stored in registers or memory locations. Its capabilities include:

  • Adders for addition and subtraction
  • Multipliers for multiplication and division
  • Logical gates for AND,
...
Continue reading "Intel 8086 Microprocessor Architecture Explained" »

Public vs. Private Blockchains: Understanding the Key Differences

Computer science2.03 KB

1. What is a Public Blockchain?

Public blockchains are open networks that allow anyone to participate. This permissionless nature means anyone can join the network and read, write, or participate in the blockchain.

Public blockchains are decentralized, meaning no single entity controls the network. Data on a public blockchain is secure because it is virtually impossible to modify or alter data once validated on the blockchain.

Features of Public Blockchains:

  • High Security: Secured by mining and the 51% rule.
  • Open Environment: Open for anyone to join.
  • Anonymous Nature: Participants can remain anonymous, enhancing privacy.
  • No Regulations: No strict regulations on platform usage.
  • Full Transparency: The ledger is publicly viewable, ensuring transparency.
...
Continue reading "Public vs. Private Blockchains: Understanding the Key Differences" »

Web Security: Confidentiality, Authentication, and Protection Measures

Computer science3.48 KB

Web Security

Confidentiality: only authorized users should have access to the data

Authentication: each user must be confirmed to be who they say they are through their digital identity

Authorization: access to the different services must be conditioned by the identity and permissions attributed to each user

Integrity: the data sent must be the same as those received, avoiding manipulation or corruption

Availability: quality or condition of the information to be available to those who must access it.


Security Threats: the security of a network is exposed

Logical Causes:

This is the software that can attack the computer: malware, spam, viruses, programming errors…

Human Causes:

These are users who can damage the system: inexperienced users, hackers,...

Continue reading "Web Security: Confidentiality, Authentication, and Protection Measures" »

Jacobi Method Implementation in Fortran

Computer science3.12 KB

This section details the implementation of the Jacobi method in Fortran for solving a system of linear equations. The subroutine solucion_Jacobi takes a matrix A, a vector b, and an initial guess X as input, and returns the solution vector X.

Subroutine: solucion_Jacobi(A, b, X)

The subroutine begins with the following declarations and initializations:

  • use normas
  • integer, parameter :: Kx = 100
  • real(8), parameter :: tolerancia = 1E-6
  • real(8), allocatable :: X0(:), ERROR(:)
  • real(8), intent(in) :: A(:,:), b(:)
  • real(8), allocatable, intent(out) :: X(:)
  • integer :: i, j, k, n
  • real(8) :: sum, zero, ek

Where:

  • Kx is the maximum number of iterations.
  • tolerancia is the error tolerance.
  • X0 is the previous iteration's solution vector.
  • ERROR is the error vector.
  • A is the
...
Continue reading "Jacobi Method Implementation in Fortran" »

Computer Hardware and Operating System Fundamentals

Computer science1.98 KB

Microprocessor

A microprocessor is an integrated circuit with millions of tiny transistors that process instructions and data from memory.

  • Clock rate: The microprocessor's speed.
  • Number of bits: The amount of data a computer can process at once.

Memory

  • RAM: Main memory for temporary data storage.
  • ROM: Memory for startup programs and diagnostics.
  • Cache: Stores frequently used data for the microprocessor.

Storage

  • Hard disk: Device for permanent information storage.

Operating System

The operating system is a set of commands and programs that control basic computer processes and enable other programs to run.

  • Manages the microprocessor, coordinating computer work.
  • Manages memory and storage systems.
  • Provides a user interface.
  • Enables communication between applications
...
Continue reading "Computer Hardware and Operating System Fundamentals" »

C Programming Basics: Examples and Explanations

Computer science2.72 KB

C Programming Basics

Printing a Message

int main() { print("Hello!!!"); }

Variables and Mathematical Calculations

int main() // Main function

{

int a = 25; // Initialize a variable to 25

int b = 17; // Initialize b variable to 17

int c = a + b; // Initialize c variable to a + b

print("c = %d ", c); // Display decimal value of c

}

Floating-Point Math

int main() // Main function

{

float r = 1.0; // Set radius to 1.0

float c = 2.0 * PI * r; // Calculate circumference

print("circumference = %f \n", c); // Display circumference

}

Arrays

int main() // Main function

{

int p[] = {1, 2, 3, 5, 7, 11}; // Initialize the array

print("p[0] = %d\n", p[0]); // Display what p[0] stores

print("p[3] = %d\n", p[3]); // Display what p[3] stores

p[3] = 101; // Assignment

}

...
Continue reading "C Programming Basics: Examples and Explanations" »