Notes, summaries, assignments, exams, and exercises for Computer science for Other courses

fx-82MS Calculator: Statistics and Quadratic Equation Steps

Computer scienceUpdated on 1.69 KB

Steps:
1.
SHIFT - MODE - 2 (clr)
2.
MODE - 2 (SD)
3.
0 - M +, 80 times (n = 80)
4. Data Full appears -
M +
5. Appears EditOff (1) ESC (2). - 2
6. Arrow above the replay, you Freq80 = 1
7. Write 1313131313 ... until it can
8.
= Appears Full Data
9.
= Appears EditOff (1) Esc (2)
10.
0 - 1 - = appears Syntax Exec
11. AC, Ready to be shut down or press ON

2nd degree equations:
1. SHIFT - SHIFT - SHIFT - 1 (Eqn)
2. ! Right arrow replay -
2
3. Coefficient of x 2 - =
4. Coefficient of x - =
5. Independent term - =
6. You get a result, replay the down arrow to the
other
For Grade 3, selecciionar 3 in step 2

Binary Code Chart: Numbers 1 to 150 with Conversion Examples

Computer scienceUpdated on 109.07 KB

Binary Code Chart: 1 to 150

This chart provides a comprehensive list of numbers from 1 to 150 and their corresponding binary representations. Binary code is the fundamental language of computers, using only two digits, 0 and 1, to represent all data.

Understanding Binary Numbers

Each digit in a binary number represents a power of 2, starting from 20 (which is 1) on the rightmost digit and increasing by powers of 2 as you move to the left. For example, the binary number 101 represents:

  • (1 * 22) = 4
  • (0 * 21) = 0
  • (1 * 20) = 1

Adding these values together: 4 + 0 + 1 = 5. Therefore, the binary number 101 is equivalent to the decimal number 5.

Binary Chart (1-150)

Here's the binary representation for numbers 1 through 150:

1 = 1, 26 = 11010, 51 = 110011,...

Continue reading "Binary Code Chart: Numbers 1 to 150 with Conversion Examples" »

MS-DOS CONFIG.SYS File: Configuration and Device Drivers

Computer scienceUpdated on 23.04 KB

Understanding MS-DOS CONFIG.SYS Configuration

The CONFIG.SYS file is crucial for configuring various system components, including MS-DOS, hardware, and applications, ensuring they function as intended.

System configuration information is primarily stored in the CONFIG.SYS file.

What is CONFIG.SYS?

It is a text file that contains special commands that configure computer components such as hardware (memory, keyboard, mouse, printer) for use by MS-DOS and applications.

It is the first file that runs when you start MS-DOS.

Location of CONFIG.SYS

It is usually located in the root directory, C:\.

CONFIG.SYS Runtime

MS-DOS executes this file each time you start your computer. However, if needed, you can instruct the system to skip it.

Why Modify CONFIG.SYS?

...
Continue reading "MS-DOS CONFIG.SYS File: Configuration and Device Drivers" »

Extracting Structured Institution Data with LangChain and Cohere

Computer scienceUpdated on 3.45 KB

Automated Data Extraction Using LangChain and Cohere

This script demonstrates how to leverage LangChain, Cohere, and the Wikipedia API to extract structured information about institutions. By using Pydantic, we ensure the extracted data follows a strict schema for better reliability.

Required Libraries and Data Models

First, we import the necessary modules and define our data structure using a Pydantic model to store institution details such as the founder, founding year, and employee count.

from langchain_community.llms import Cohere
from langchain.prompts import PromptTemplate
from langchain_core.runnables import RunnableLambda
from pydantic import BaseModel
import wikipediaapi

class InstitutionDetails(BaseModel):
    founder: str
    founded:
...
Continue reading "Extracting Structured Institution Data with LangChain and Cohere" »

IoT Wireless Protocols Explained: MQTT, LoRa, ZigBee, Wi-Fi, BLE, NFC and RFID

Computer scienceUpdated on 4.63 KB

1. MQTT Protocol and Architecture

MQTT is a lightweight messaging protocol designed for M2M IoT communication. It utilizes a publish–subscribe model, eliminating the need for direct device-to-device communication. Key features include low power consumption, low bandwidth usage, scalability, reliability (via QoS 0/1/2), and security (TLS). The architecture consists of a Client (publisher/subscriber device), a Broker (central server for message management, filtering, and routing), and a TCP/IP connection (CONNECT–CONNACK).

2. 6LoWPAN Working and Importance

6LoWPAN stands for IPv6 over low-power wireless personal area networks (IEEE 802.15.4). Its working mechanism involves header compression, packet fragmentation, an adaptation layer, mesh routing,...

Continue reading "IoT Wireless Protocols Explained: MQTT, LoRa, ZigBee, Wi-Fi, BLE, NFC and RFID" »

Databases and Data Warehousing: Keys, ERD Rules, Normalization and Dimensional Design

Computer science8.27 KB

CSC 5301 | Databases and Data Warehousing

Keys • ERD Rules • Normalization

Keys

PK: uniquely identifies each row; never NULL.
Candidate key: minimal set that uniquely identifies a row.
FK: references a key in another table; enforces referential integrity.
Composite key: two or more columns jointly identify a row.
Natural key: real business identifier (e.g., student_id).
Surrogate key: generated identifier without business meaning.

Relationships and FK Placement

1:N → place FK on the many (N) side: STUDENT.major_id → MAJOR.major_id.
M:N → associative table with both FKs; combined PK usually.
ENROLLMENT(student_id, section_id, grade); PK(student_id, section_id).
1:1 → FK on one side, usually UNIQUE.
Composite FK → include every referenced PK...

Continue reading "Databases and Data Warehousing: Keys, ERD Rules, Normalization and Dimensional Design" »

Artificial Intelligence: Search, Knowledge Representation and Expert Systems

Computer science5.97 KB

AI refers to machines performing human-like intelligence, such as learning, reasoning, problem-solving and decision-making.

AI Languages

  • LISP: symbolic processing
  • PROLOG: logic programming
  • Python: AI libraries
  • Java/C++: AI applications

Blind Search

  • BFS: FIFO queue, level-wise search, complete, memory-intensive
  • DFS: LIFO stack, depth-wise search, less memory, may get stuck

Heuristic Search

Heuristic search uses h(n) to estimate the distance to the goal.

  • Hill Climbing: chooses the best neighbour. Problems include local maxima, plateaus and ridges.
  • Best-First Search: expands the most promising node.
  • A*: f(n) = g(n) + h(n), combining actual cost and estimated cost.
  • AO*: searches AND-OR graphs; AND requires all branches, while OR selects one.

Game Playing

A game...

Continue reading "Artificial Intelligence: Search, Knowledge Representation and Expert Systems" »

Understanding Computer Architecture: System Bus, Address Bus, Data Bus, and Control Bus

Computer science38.71 KB

System Bus (Data, Address, and Control Bus)

This network of wires or electronic pathways is called the 'Bus'. A system bus is a single computer bus that connects the major components of a computer system.

It combines the functions of:

  • Data Bus: Carries information.
  • Address Bus: Determines where information should be sent.
  • Control Bus: Determines the operation to be performed.

This technique was developed to reduce costs and improve modularity.

Z

Figure: System Bus

Address Bus

The address bus is a group of wires or lines used to transfer the addresses of memory or I/O devices.

  • It is unidirectional.
  • The width of the address bus determines the maximum addressing capacity, representing the largest address within memory that the bus can handle.
  • Addresses are
...
Continue reading "Understanding Computer Architecture: System Bus, Address Bus, Data Bus, and Control Bus" »

dsdfs

Computer science7.22 KB

Kako si lep danes 

What is Lorem Ipsum?

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

What is Lorem Ipsum?

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard...

Continue reading "dsdfs" »

Operating System Concepts: Process, Memory, and Disk Management

Computer science64.1 KB

Primary Functions of an Operating System

An operating system (OS) is system software that acts as an interface between the user and the computer hardware. Its primary functions are:

  • Process Management: Creation, scheduling, and termination of processes.
  • Memory Management: Allocation and deallocation of memory.
  • File Management: Organization, storage, and retrieval of files.
  • Device/I-O Management: Controls peripheral devices.
  • Security & Protection: Prevents unauthorized access.

What Is a Batch Processing System?

  • A batch operating system groups similar jobs (with the same requirements) together and executes them as a single batch without user interaction.
  • A resident monitor reads jobs sequentially from input and submits them to the CPU.
  • Advantage: Less
...
Continue reading "Operating System Concepts: Process, Memory, and Disk Management" »