Notes, summaries, assignments, exams, and exercises for Computer science for Baccalaureate

Network Design Fundamentals and Methodologies

Computer science4.22 KB

Key Network Concepts and Design Principles

Essential Network Terminology

Usability
The ease with which network users can access the network and its services. This includes goals for simplifying user tasks.
Management (Fault, Configuration, Accounting, Performance, Security)
The five key areas of network management: Fault Management, Configuration Management, Accounting Management, Performance Management, and Security Management.
Bandwidth
The data-carrying capacity of a circuit, measured in bits per second (bits/sec).
Throughput
The quantity of error-free data transmitted per unit of time by a circuit, measured in bits/bytes per second or packets per second.
Five Nines
High availability of service, commonly taken to mean 99.999% uptime.
Silent Failure
A
...
Continue reading "Network Design Fundamentals and Methodologies" »

Spreadsheet Basics and Text Editing Tips

Computer science2.15 KB

Unit 14: Moving Text

Cutting and Pasting

Anna: Ben, do you know how I can move this paragraph? I want to put it at the end of this page.

Ben: I think so. First, select the text with your mouse. Then, choose "Cut" from the Edit menu.

Anna: Like this?

Ben: Yes. The text disappears and is copied to the Clipboard. Click where you want the text to go.

Anna: Okay. Is that right?

Ben: Yes, if that's the correct spot. Next, choose "Paste" from the Edit menu, or press CTRL+V.

Anna: Okay, done. Is that all?

Ben: Yes. If you make a mistake, choose "Undo" from the Edit menu to reverse your last action.

Anna: Brilliant! Thanks!

Ben: You're welcome.

Unit 15: Spreadsheet Fundamentals

Introduction

Let's start with the basics. Spreadsheets are used in business for financial...

Continue reading "Spreadsheet Basics and Text Editing Tips" »

Wireless Network Technology: Key Concepts and Security

Computer science3.85 KB

1. Why Can IEEE 802.11 Transmit Further Than Bluetooth?

IEEE 802.11 (Wi-Fi) has a higher power output than Bluetooth.

2. Three Advantages of Wireless Over Wired Technology

  • Anytime, anywhere connectivity
  • Easy and inexpensive to install
  • Ease of adding additional devices

3. Two Benefits of Wireless Networks Over Wired Networks

  • Mobility
  • Reduced installation time

4. Factors Affecting the Number of Access Points Needed

Three factors that affect the number of access points needed for wireless connectivity are:

  • The size of the building
  • The number of solid interior walls in the building
  • The presence of microwave ovens in various offices

5. Why is Security Important in Wireless Networks?

Security is crucial because wireless networks broadcast data over a medium that

...
Continue reading "Wireless Network Technology: Key Concepts and Security" »

Modern Cryptography and Data Security Fundamentals

Computer science11.63 KB

Lecture 1: Introduction and Security Concepts

The CIA Triad

  • Confidentiality: Limits access to authorized users. A breach results in unauthorized disclosure.
  • Integrity: Prevents unauthorized modification. A breach results in an altered document.
  • Availability: Ensures timely access. A breach results in a Denial of Service (DoS) attack.

Additional Security Objectives

  • Authenticity: Verifies that the data or sender is real and trustworthy.
  • Accountability: Ensures actions are traceable to specific entities.
  • Non-repudiation: Ensures a party cannot deny their actions, often achieved via digital signatures.

Kerckhoffs's Principle

Security should rely only on the secrecy of the key, not the secrecy of the algorithm. The system remains secure even if the attacker...

Continue reading "Modern Cryptography and Data Security Fundamentals" »

Digital Electronics Cheat Sheet: Essential Logic Design

Computer science3.41 KB

Here is the compact Micro Xerox cheat sheet content for your listed Digital Electronics topics. It is formatted in a pointwise manner suitable for mini printouts:


3-Stage Carry Look Ahead Adder Using Basic Gates

  • Carry Generate: G = A · B
  • Carry Propagate: P = A ⊕ B
  • C1 = G0 + P0 · Cin
  • C2 = G1 + P1 · C1
  • C3 = G2 + P2 · C2
  • Reduces delay by avoiding ripple carry.

Realization of Boolean Function Using MUX

(a) 4×1 MUX:

  • Use 2 variables as select lines, rest for input logic.
  • Map the output as per the truth table.

(b) 8×1 MUX:

  • Use 3 variables as select lines.
  • Directly assign data lines as per minterms.

Mealy vs. Moore State Machines

  • Mealy: Output = f(state, input), faster response.
    Example: Sequence detector
  • Moore: Output = f(state), more stable.
    Example: Traffic
...
Continue reading "Digital Electronics Cheat Sheet: Essential Logic Design" »

Core Web Development Concepts: Node.js, Express, React, Redux, MongoDB

Computer science38.95 KB

Node.js Fundamentals

Understanding Node.js Modules

Modules in Node.js are reusable pieces of code that can be exported from one file and imported into another. Each file in Node.js is considered a module, operating within its own scope. Modules help organize code into separate files for better maintainability and reusability.

Types of Node.js Modules:

  1. Core Modules: Built-in modules provided by Node.js, pre-installed and ready to use.
  2. Local Modules: Custom modules created by developers for specific application logic.
  3. Third-party Modules: Modules installed via npm (Node Package Manager), extending Node.js functionality.

Key Built-in Node.js Core Modules

Core modules are essential, pre-installed components of Node.js. You can use them directly in your...

Continue reading "Core Web Development Concepts: Node.js, Express, React, Redux, MongoDB" »

Digital Logic: Moore's Law, Logic Gates, and Number Systems

Computer science708.55 KB

Lecture 1: Moore's Law

Moore's Law: The number of transistors on microchips doubles every two years.

Lecture 2: Logic Gates

I7WgAAAABJRU5ErkJggg==

i3AAAAABJRU5ErkJggg==

+NnQQWHnrkU5hEgARmEjCXFieBuVQxHFZoESCBhRZfu1ongdmFNPtxFQIkMFepI+jBkMCCho4VvYwACczL2qMNLDy0x6cIGoEjR45Iq1atZNWqVbqNnTt3SpUqVYJujxWdQYArMGdwZ68OI4AY19dff10GDBggbdu2lblz50p8fLzDo2L3ZhEggZlFjOXDBgEEmaekpEhcXBzJy6NaJYF5VHEcNhEgAiIkMM4CIkAEPIsACcyzquPAiQARIIFxDhABIuBZBEhgnlUdB04EiAAJjHOACBABzyJAAvOs6jhwIkAESGCcA0SACHgWARKYZ1XHgRMBIkAC4xwgAkTAswiQwDyrOg6cCBABEhjnABEgAp5FgATmWdVx4ESACJDAOAeIABHwLAIkMM+qjgMnAkSABMY5QASIgGcRIIF5VnUcOBEgAiQwzgEiQAQ8iwAJzLOq48CJABEggXEOEAEi4FkESGCeVR0HTgSIAAmMc4AIEAHPIkAC86zqOHAiQAT+DyAtVcWtdpgpAAAAAElFTkSuQmCC

PKhJg4vKJJngcj4CICTBwugs1dMQJeQYCJwyua5HkwAi4iwMThItjcFSPgFQSYOLyiSZ4HI+AiAkwcLoLNXTECXkGAicMrmuR5MAIuIsDE4SLY3BUj4BUEmDi8okmeByPgIgJMHC6CzV0xAl5BgInDK5rkeTACLiLAxOEi2NwVI+AVBJg4vKJJngcj4CICTBwugs1dMQJeQYCJwyua5HkwAi4iwMThItjcFSPgFQSYOLyiSZ4HI+AiAkwcLoLNXTECXkGAicMrmuR5MAIuIsDE4SLY3BUj4BUEmDi8okmeByPgIgJMHC6CzV0xAl5BgInDK5rkeTACLiLAxOEi2NwVI+AVBP4HSdmP4LA25GYAAAAASUVORK5CYII=

5hQAAAAASUVORK5CYII=

eg8CIAACIAACfhGAQPiFDYVAAARAAARAwNkEIBDOjj96DwIgAAIgAAJ+EYBA+IUNhUAABEAABEDA2QT+D4sjTswCubX7AAAAAElFTkSuQmCC

o3LOcXr2Tof4HmKwTSBU6n03g8Hv9jfn5+pseNz2fo4ysWkACBdgFD334B8hMgEC9g6OMrFpAAgXYBQ99+AfITIBAvYOjjKxaQAIF2AUPffgHyEyAQL2Do4ysWkACBdgFD334B8hMgEC9g6OMrFpAAgXYBQ99+AfITIBAvYOjjKxaQAIF2AUPffgHyEyAQL2Do4ysWkACBdgFD334B8hMgEC9g6OMrFpAAgXYBQ99+AfITIBAvYOjjKxaQAIF2AUPffgHyEyAQL2Do4ysWkACBdgFD334B8hMgEC9g6OMrFpAAgXYBQ99+AfITIBAvYOjjKxaQAIF2AUPffgHyEyAQL2Do4ysWkACBdgFD334B8hMgEC9g6OMrFpAAgXYBQ99+AfITIBAvYOjjKxaQAIF2AUPffgHyEyAQL2Do4ysWkACBdgFD334B8hMgEC9g6OMrFpAAgXYBQ99+AfITIBAvYOjjKxaQAIF2AUPffgHyEyAQL2Do4ysWkACBdgFD334B8hMgEC9g6OMrFpAAgXYBQ99+AfITIBAvYOjjKxaQAIF2AUPffgHyEyAQL2Do4ysWkACBdgFD334B8hMgEC9g6OMrFpAAgXaBf18koFmMFdorAAAAAElFTkSuQmCC

wFbJNthuSOezwAAAABJRU5ErkJggg==

AND, OR, and NOT gates are universal.

Logic word problem steps:

Example: In a bank, there were four employees: the bank manager, assistant manager, teller, and the security guard. The bank has a single vault for the storage of their money. This vault was designed so that it needs four signals to open it. These four signals are from the bank manager, assistant manager, teller, and the security guard. For the vault to open, it needs the following conditions:

  1. No single employee can open the vault.
  2. It can be opened with three employees as long as one of them is the manager.
  3. It can be opened by the manager together with the assistant
...
Continue reading "Digital Logic: Moore's Law, Logic Gates, and Number Systems" »

Digital Logic Circuits: Flip-Flops, Comparators, Decoders, and Registers

Computer science4.04 KB

Digital Logic Circuits

Flip-Flops

Clocked RS Flip-Flop Drawbacks

Clocked RS flip-flops have some drawbacks, such as susceptibility to race conditions, where the output can become unpredictable if the inputs change too close to the clock edge. They also require careful handling of the inputs to avoid metastability issues, which can lead to incorrect output states. Additionally, they can have higher power consumption compared to other flip-flop types due to the need for a clock signal.

JK Flip-Flop Operation

Content about JK Flip-Flop operation, characteristic table, characteristics equation, circuit diagram, and timing diagram would be added here.

Magnitude Comparator

What is a Magnitude Comparator?

A magnitude comparator is a digital circuit that compares...

Continue reading "Digital Logic Circuits: Flip-Flops, Comparators, Decoders, and Registers" »

Computer Architecture Essentials and Cheat Sheet

Computer science3.32 KB

Certainly! Here is a cheat sheet for computer architecture:

1. Central Processing Unit (CPU)

  • The "brain" of the computer that executes instructions.
  • Consists of the Control Unit (CU) and the Arithmetic Logic Unit (ALU).
  • Fetches instructions from memory, decodes them, and executes them.

2. Memory Hierarchy

  • Registers: Fastest and smallest storage units located within the CPU.
  • Cache: High-speed memory that stores frequently accessed data.
  • Main Memory (RAM): Larger storage used to hold data and instructions.
  • Secondary Storage: Non-volatile storage devices like hard drives and SSDs.

3. Instruction Cycle

  • Fetch: The CPU fetches the next instruction from memory.
  • Decode: The instruction is decoded to determine the operation.
  • Execute: The instruction is executed
...
Continue reading "Computer Architecture Essentials and Cheat Sheet" »

JavaScript Cheat Sheet: Arrays, Functions, Objects & More

Computer science4.2 KB

JavaScript Cheat Sheet

JavaScript Arrays

var cars = ["Mercedes", "Tesla","Volvo"];

  • pop(): Removes the last element of an array.
  • push(): Adds a new element at the end of an array.
  • concat(): Joins various arrays into a single array.
  • reverse(): Reverses the order of elements in an array.
  • indexOf(): Returns the first index of a given element in an array.
  • lastIndexOf(): Returns the last index of a given element in an array.
  • join(): Combines elements of an array into a single string.
  • sort(): Sorts array elements based on a condition.

Global Functions

These functions are built-in to every browser that runs JavaScript:

  • parseFloat(): Parses the argument and returns a floating-point number.
  • parseInt(): Parses the argument and returns an integer.
  • Number(): Returns a
...
Continue reading "JavaScript Cheat Sheet: Arrays, Functions, Objects & More" »