Notes, summaries, assignments, exams, and problems for Computers

Sort by
Subject
Level

Theory of Computation: Automata, and Regular Expressions

Classified in Computers

Written on in English with a size of 3.97 KB

Theory of Computation

Automata Theory

Automata theory is a theoretical branch of computer science and mathematics that deals with the logic of computation using simple machines called automata. The main goal of automata theory is to develop methods for describing and analyzing the dynamic behavior of discrete systems. Automata consist of states (represented by circles) and transitions (represented by arrows).

Finite Automata

A finite automaton is an abstract computing device and a mathematical model of a system with discrete input, output, states, and a set of transitions between states that occur on input symbols from an alphabet. Finite automata are the simplest machines for pattern recognition, used to characterize regular languages, analyze... Continue reading "Theory of Computation: Automata, and Regular Expressions" »

Excel 2016 Practice Questions and Answers

Classified in Computers

Written on in English with a size of 3.22 KB

Excel Practice Questions and Answers

  1. The ________ displays the current cell mode, the page number, and the zoom buttons.

    Answer: Status bar

  2. A text value in Excel is also referred to as a ________.

    Answer: Label

  3. When you type text in a cell, it is ________.

    Answer: Left-aligned

  4. Which of the following is NOT a way to create a formula?

    Answer: By using a Function button on the status bar

  5. ________ is a procedure that determines which digit to the right of a number will be the last to be displayed.

    Answer: Rounding

  6. Which of the following is NOT part of the Accounting Number Format?

    Answer: Three decimal places

  7. Tiny charts embedded in a cell that display a visual trend summary alongside your data are called ________.

    Answer: Sparklines

  8. What are the two contextual

... Continue reading "Excel 2016 Practice Questions and Answers" »

Data Manipulation and Visualization with R and the nycflights13 Dataset

Classified in Computers

Written on in English with a size of 3.64 KB

library(nycflights13)
library(tidyverse)

Data Manipulation with dplyr

Ordering Rows with arrange()

arrange(flights, year, month, day)
arrange(flights, desc(arr_delay))

Handling NAs

df <- tibble(x = c(5, 2, NA))
arrange(df, x)
arrange(df, desc(x))

Selecting Columns with select()

select(flights, year, month, day)
select(flights, year:day)
select(flights, -(year:day))
rename(flights, mes = month)
select(flights, time_hour, air_time, everything())

Creating New Variables with mutate()

flights_sml <- select(flights, year:day, ends_with("delay"), distance, air_time)
mutate(flights_sml, gain = arr_delay - dep_delay, speed = distance / air_time * 60)

Creating Functions with Vector Arguments

transmute(flights, dep_time, hour = dep_time %/% 100, minute = dep_time %
... Continue reading "Data Manipulation and Visualization with R and the nycflights13 Dataset" »

Digital Logic Design: Examples in VHDL

Classified in Computers

Written on in English with a size of 5.88 KB

Behavioral Architecture of a State Machine

This VHDL code describes the behavioral architecture of a state machine.

TYPE tipo_estado IS (DET0, DET0a1, DET1a0, DET1);
signal Estado_actual : tipo_estado;
signal Estado_siguiente : tipo_estado;
begin
Registro_estado: process (clk, reset)
begin
if reset='1' then Estado_actual <= DET0;
elsif (clk'event and clk='1') then
Estado_actual <= Estado_siguiente;
end if;
end process Registro_estado;
Cambio_Estado: process (Dato, Estado_actual)
begin
Estado_siguiente <= Estado_actual;
case Estado_actual is
when DET0 => if (Dato='1') then Estado_siguiente <= DET0a1;
else Estado_siguiente <= DET0;
end if;
when DET0a1 => if (Dato='1') then Estado_siguiente <= DET1;
else Estado_siguiente <= DET1a0;
end if;
... Continue reading "Digital Logic Design: Examples in VHDL" »

Microcontrollers: Architecture, Instruction Sets, and Interfacing

Classified in Computers

Written on in English with a size of 3.86 KB

Microcontrollers, Microcomputers, and Microprocessors

Microcontroller: Processor, memory, and I/O ports integrated on a single chip.

Microcomputer: A small computer.

Microprocessor: Example: Intel x86.

Von Neumann Architecture

Components:

  • Processor (Control Unit, ALU, Registers)
  • Memory (RAM - Volatile, ROM - Non-Volatile)
  • I/O

A single bus interconnects the processor, memory, and I/O.

RISC vs. CISC

FeatureCISCRISC
Instruction SetComplex Instruction Set ComputerReduced Instruction Set Computer
InstructionsMulti-cycle, complex instructionsMostly single-cycle, reduced instructions
Instruction TypesMany, varying lengthFew, fixed length
ComplexityHardwareSoftware
Code SizeSmallLarge
ExamplesIntel (x86), Freescale 9S12MIPS, ARM, SPARC, PowerPC

RAM vs. ROM vs. CPU Register

FeatureRAMROM
ElaborationRandom
... Continue reading "Microcontrollers: Architecture, Instruction Sets, and Interfacing" »

Colegio Leonardo Da Vinci: Noticias, Exámenes y Niveles

Classified in Computers

Written on in English with a size of 1.01 KB

Creative Commons License Icon

Logo Colegio Leonardo Da Vinci COLEGIO LEONARDO DA VINCI Sello Bilingüe

¡Hola, Muy Buenas!

Noticias Destacadas

COMIENZAN LOS EXÁMENES DE LA PRIMERA EVALUACIÓN.


EL BAILE DE DISFRACES DE HALLOWEEN FUE TODO UN ÉXITO.


LOS ALUMNOS PIDEN VER LOS PARTIDOS DE ESPAÑA EN CLASE.

La presente web no tiene derechos de autor, sino que está sujeta a la licencia Creative Commons mostrada.

Pascal Movie Database Management Procedures

Classified in Computers

Written on in English with a size of 8.83 KB

Pascal Movie Database Management

This document details several procedures written in Pascal for managing a movie database. The database is stored in a file of records, where each record represents a movie.

Data Structure

The code defines a pelicula (movie) record with the following fields:

  • codigo: integer (Movie ID)
  • genero: string (Genre)
  • nombre: string (Title)
  • duracion: integer (Duration)
  • director: string (Director)
  • copias: integer (Number of Copies)
  • precio: real (Price)

A constant valoralto is defined as 9999, used as a sentinel value.

And the file is defined as:

maestro= file of pelicula ;

Procedures

leerp(var p: pelicula)

Reads movie data from the input (keyboard) and stores it in the pelicula record p. It reads the codigo first. If it's not equal to... Continue reading "Pascal Movie Database Management Procedures" »

VHDL Implementations for Digital Logic Components

Classified in Computers

Written on in English with a size of 7.52 KB

VHDL Flip-Flop Implementations

This section demonstrates various VHDL implementations of flip-flops and latches, showcasing different clocking, clear, preset, and load mechanisms.


entity reginf is
    port (
        d, clk, clr, pre, load, data : in  std_logic;
        q1, q2, q3, q4, q5, q6, q7   : out std_logic
    );
end reginf;

architecture rtl of reginf is
begin

Active High Clock D-Latch

A simple D-latch sensitive to the rising edge of the clock.


    -- D-latch with active high clock
    process
    begin
        wait until clk='1';
        q1 <= d;
    end process;

Active Low Clock D-Latch

A D-latch sensitive to the falling edge of the clock.


    -- D-latch with active low clock
    process
    begin
        wait until clk='0';
... Continue reading "VHDL Implementations for Digital Logic Components" »

Understanding Mobile Development: The Viewport Meta Tag

Classified in Computers

Written on in English with a size of 735 bytes

Mobile Development: The Viewport Meta Tag

The viewport meta tag is crucial for responsive web design on mobile devices. It controls how the browser displays a webpage on different screen sizes. Here's a breakdown of its key attributes:

Key Attributes

  • width: Defines the viewport width. Typically set to device-width, which matches the device's screen width.
  • initial-scale: Sets the initial zoom level. A value of 1 ensures the webpage is displayed at 100% zoom initially.
  • user-scalable: A boolean attribute. Setting it to no prevents users from zooming in or out.

Core Concepts in Data Management, Mining, and Analytics

Classified in Computers

Written on in English with a size of 124.09 KB

Object Identifier (OID) Explained

OID stands for Object Identifier, which is a unique identifier assigned to each object in an object-oriented database (OODB).

Function and Structure of OIDs

In an OODB, data is stored as objects that have properties (attributes) and behaviors (methods). Each object is assigned a unique OID that identifies it uniquely within the database. OIDs are used to reference objects and to establish relationships between them.

For example, if one object in a database needs to refer to another object, it can do so using the OID of the other object. This helps to establish relationships between objects and enables the creation of more complex data structures.

OID vs. Primary Key

OIDs in database management systems are similar... Continue reading "Core Concepts in Data Management, Mining, and Analytics" »