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

Sort by
Subject
Level

Developing Logical and Mathematical Thinking in Children

Classified in Computers

Written on in English with a size of 3.73 KB

What is Mathematical Logical Thinking?

These are the skills students develop associated with logical and mathematical concepts, reasoning, comprehension, and exploration of the world through real proportions, thus strengthening more abstract aspects of thought.

Geometry with Dinosaurs

This activity involves cutting out various geometric shapes with EVA rubber. Children will then create their own dinosaurs using these shapes. Through this activity, they can learn geometric shapes, count the number of elements used in each dinosaur (like the sides of the shapes), and create new geometric shapes from the ones they already have.

Logical Reasoning with Chupa Chups

This activity consists of creating logically structured material and playing with it using... Continue reading "Developing Logical and Mathematical Thinking in Children" »

C# and .NET Core Fundamentals: Essential Programming Concepts

Posted by Anonymous and classified in Computers

Written on in English with a size of 14.54 KB

.NET Framework and Its Core Components

The Microsoft .NET Framework is a comprehensive and consistent programming model developed by Microsoft for building applications with visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes. The .NET Framework is a software development platform used for building and running Windows applications. It provides a controlled programming environment where software can be developed, installed, and executed primarily on Windows-based operating systems.

Key Components of .NET Framework:

  1. Common Language Runtime (CLR): The CLR is the execution engine for .NET applications. It provides core services such as:
    • Memory management (garbage collection)
    • Thread
... Continue reading "C# and .NET Core Fundamentals: Essential Programming Concepts" »

Dafny Verification and Formal Methods Exam Review

Classified in Computers

Written on in English with a size of 644.93 KB

Dafny Concepts and Preconditions

Preconditions are required; postconditions are ensured.

Methods do not change given parameters unless a modifies clause is present.

Old(E) has the value of E at the start of the method.

Fresh(E) as a postcondition shows that E was created by M.

With if statements, Dafny works normally. With if-case statements, you introduce nondeterminism (hard; you need to prove all options).

Classes have instance variables and methods, which need clear contracts.

A trait is an abstract class, from which classes inherit (like a template in Java). Example: trait A; class B extends A

Class invariants must hold before and after any method. Use ghost predicate Valid().

Behavioral Subtyping: When a class A inherits from another class/trait,... Continue reading "Dafny Verification and Formal Methods Exam Review" »

Ethereum Technical Deep Dive: Accounts, Smart Contracts, and PoS Consensus

Posted by Anonymous and classified in Computers

Written on in English with a size of 5.4 KB

This educational resource details Ethereum, a decentralized blockchain platform launched in 2015, focusing on its key features, accounts, smart contracts, transactions, and consensus mechanisms.

Ethereum Fundamentals

Ethereum is a blockchain platform that supports smart contracts—immutable computer programs executed on the Ethereum Virtual Machine (EVM). It uses Ether (ETH) as its native cryptocurrency to pay for transaction processing and smart contract execution.

Ethereum Accounts and Wallets

Account Types

  • Externally-Owned Accounts (EOAs): Controlled by private keys, used primarily for transactions like ETH transfers. Public keys are derived using Elliptic Curve Cryptography (ECC).
  • Contract Accounts: Controlled by smart contract code, deployed
... Continue reading "Ethereum Technical Deep Dive: Accounts, Smart Contracts, and PoS Consensus" »

John Doe — Software Engineer Resume | JavaScript & React

Classified in Computers

Written on in English with a size of 1.43 KB

John Doe

Software Engineer

Contact Information

Email: [email protected]

Phone: (123) 456-7890

LinkedIn: linkedin.com/in/johndoe

GitHub: github.com/johndoe

Experience

Software Engineer at XYZ Corp

Jan 2020 - Present

  • Developed and maintained web applications using JavaScript, HTML, and CSS.
  • Collaborated with cross-functional teams to define, design, and ship new features.
  • Wrote unit and integration tests to ensure code quality.

Junior Developer at ABC Inc.

Jul 2018 - Dec 2019

  • Assisted in the development of web applications using React and Node.js.
  • Participated in code reviews and provided constructive feedback.
  • Contributed to the maintenance and improvement of existing codebases.

Education

Bachelor of Science in Computer Science

University of Somewhere, 2014 -

... Continue reading "John Doe — Software Engineer Resume | JavaScript & React" »

Android Development Concepts: UI Components and Architecture

Posted by Anonymous and classified in Computers

Written on in English with a size of 11.09 KB

1. ListView vs RecyclerView Comparison

ListView

ListView is an older Android UI component used to display a scrollable list of items vertically. Each item is displayed one below another.

  • Uses Adapter to bind data.
  • Uses convertView for view reuse.
  • Only supports vertical scrolling.
  • Less efficient for large datasets.
  • No built-in animations.
  • ViewHolder pattern is optional.
  • Simple to use.
  • Suitable for small lists.

Example:

ListView listView = findViewById(R.id.listview); 
// ArrayAdapter<String> adapter = 
// new ArrayAdapter<>(this, 
// android.R.layout.simple_list_item_1, data); 
///listView.setAdapter(adapter);

RecyclerView

RecyclerView is an advanced and flexible version of ListView, introduced in Android.

  • Uses ViewHolder pattern by default.
  • Highly
... Continue reading "Android Development Concepts: UI Components and Architecture" »

Prolog Implementation of Traveling Salesperson Problem

Posted by Anonymous and classified in Computers

Written on in English with a size of 4.75 KB

This document presents two distinct approaches to solving the Traveling Salesperson Problem (TSP) using Prolog: an exact, brute-force method and a heuristic-based Nearest Neighbor algorithm. Both implementations are demonstrated with code and sample queries.

Exact Solver: Brute-Force TSP Algorithm

This section details a Prolog program that finds the optimal (shortest) path for the Traveling Salesperson Problem by generating and evaluating all possible tours. This method guarantees the optimal solution but can be computationally intensive for larger sets of cities.

Defining City Distances in Prolog

The distances between cities are defined using dist/3 facts. The predicate is made symmetric to ensure that dist(X,Y,D) implies dist(Y,X,D).

dist(a,b,
... Continue reading "Prolog Implementation of Traveling Salesperson Problem" »

LEGv8 Architecture and Assembly Language: Key Concepts

Classified in Computers

Written on in English with a size of 239.58 KB

Performance Metrics

  • Elapsed Time: Represents overall system performance. It is the total time taken to complete a task.
  • User CPU Time: Indicates CPU performance. It is the time the task actively runs on the CPU, excluding idle time.
  • CPU Time: The time the CPU spends executing instructions, either from the task or the operating system, excluding idle time.
  • Clock Speed: 1 MHz equals 1 million clock cycles per second. 1 GHz equals 1 billion clock cycles per second.
  • Response Time: Equivalent to execution time.
  • Throughput: Equivalent to bandwidth.
  • Performance Comparison: (PerfA) / (PerfB) = (ExecTimeB) / (ExecTimeA) = n

Impact of Processor Upgrades

  • Replacing a processor with a faster one decreases response time and increases throughput.
  • Adding an additional
... Continue reading "LEGv8 Architecture and Assembly Language: Key Concepts" »

Implementando 4x4 Matriz Transposta em Linguagem C

Classified in Computers

Written on in English with a size of 2.66 KB

Implementação da Transposição de Matriz 4x4 em C

Este programa em C demonstra como calcular e exibir a matriz transposta (B) de uma matriz quadrada de ordem 4 (A). A transposição é realizada trocando as linhas pelas colunas, ou seja, o elemento na posição A[i][j] é copiado para B[j][i].

Código Fonte em C para Transposição de Matriz

O código utiliza as bibliotecas padrão stdio.h para entrada/saída e conio.h (comum em ambientes legados) para controle de console.

#include <stdio.h>
#include <conio.h>

int main()
{
    int i, j, A[4][4], B[4][4];

    // 1. Entrada de Dados
    printf("Insira os elementos da Matriz A (4x4):\n");
    for(i = 0; i < 4; i++)
    {
        for(j = 0; j < 4; j++)
        {
            printf(
... Continue reading "Implementando 4x4 Matriz Transposta em Linguagem C" »

Java AWT GUI Development and OOP Inheritance

Posted by Anonymous and classified in Computers

Written on in English with a size of 7.41 KB

Building Java GUI Applications with AWT

Creating GUI applications using Abstract Window Toolkit (AWT) involves setting up a top-level container, adding components, arranging them with a Layout Manager, and making the container visible.

Steps to Create an AWT Application

1. Choose a Top-Level Container

The application needs a primary window to hold all components. The most common choice is the Frame class, which provides a title bar, borders, and window controls.

import java.awt.*;

// Class extends Frame to be the application window itself
public class AWTExample extends Frame {
    // Constructor and other methods
}

2. Initialize the Container (The Frame)

Inside the constructor, you set up the basic properties of the window:

  • Title: Set the window
... Continue reading "Java AWT GUI Development and OOP Inheritance" »