Notes, summaries, assignments, exams, and problems for Other courses

Sort by
Subject
Level

Mastering Deterministic Finite Automata: Construction & Core Concepts

Classified in Philosophy and ethics

Written on in English with a size of 1.48 MB

DFA for Strings with Odd 'a's and Even 'b's

44CWt0zipZCAAAAAElFTkSuQmCC

This section details the construction of a Deterministic Finite Automaton (DFA) to accept strings composed of 'a's and 'b's, specifically those with an odd number of 'a's and an even number of 'b's.

Language Characteristics:

  • Odd number of 'a's: At least one 'a', and the total count must be odd.
  • Even number of 'b's: At least zero 'b's, and the total count must be even.

Examples of String Acceptance:

Let L be the language of accepted strings.

  • abbaabbaabbReject (Odd 'a's, Odd 'b's)
  • aabaabaabReject (Even 'a's, Odd 'b's)
  • abababReject (Even 'a's, Odd 'b's)
  • bababaReject (Even 'a's, Odd 'b's)
  • bbaaabbaaabbaaaAccept (Odd 'a's, Even 'b's)
  • aaabbaaabbaaabbAccept (Odd 'a's, Even 'b's)

DFA for Decimal

... Continue reading "Mastering Deterministic Finite Automata: Construction & Core Concepts" »

Essential Linux Commands: A Practical Reference

Classified in Computers

Written on in English with a size of 3.95 KB

Essential Linux Commands

File and Directory Management

  • mkdir: Create a new directory.
  • ls: List contents of a directory.
  • rm: Remove files or directories (-r for recursive).
  • cp: Copy files or directories.
  • mv: Move or rename files or directories.
  • cat: Display file contents or create files.
  • less: View file contents one page at a time.
  • head: Display the first 10 lines of a file.
  • tail: Display the last 10 lines of a file.

System Information

  • uname: Show system information (kernel, version, etc.).
  • top: Display running processes and resource usage.
  • df: Show disk space usage.
  • df -h: Show disk usage in human-readable format.
  • free: Display memory usage (RAM and swap).

File Creation and Editing

  • touch: Create an empty file or update its timestamp.
  • echo: Write text to a file
... Continue reading "Essential Linux Commands: A Practical Reference" »

Essential Chemistry Definitions and Concepts

Classified in Chemistry

Written on in English with a size of 4.5 KB

Essential Chemistry Definitions

Fundamental Concepts

  • Physical Property: Characteristics observed without changing the substance (color, melting point, density, boiling point).
  • Chemical Property: Characteristics observed when a substance changes into another (reactivity with air, acid, base, water, other chemicals).
  • Law of Conservation of Matter: Matter is neither created nor destroyed.
  • Atomic Theory: Theory of the nature of atoms.
  • Isotope: Atoms of the same element with different numbers of neutrons.
  • Ion: Atom or molecule with a net electric charge.
  • Cation: Positively charged ion.
  • Anion: Negatively charged ion.
  • Atomic Mass Unit (amu): Unit of mass for expressing atomic & molecular weights.
  • Mole: Unit for amount of substance (6.022 x 10^23 particles)
... Continue reading "Essential Chemistry Definitions and Concepts" »

Python Fundamentals and Algorithms Explained

Classified in Computers

Written on in English with a size of 5.17 KB

Algorithms

Algorithms involve inputs, instructions, outputs, and a purpose.

Instruction Types

  • Instruction
  • Decision
  • Loop
  • Variable
  • Function

Python Basics

Comments

Comments explain what code is for, intended for human readers.

Variables

Storing a value in a variable is called assignment. It's best practice not to use generic names.

Calculations (Operators)

  • + : Addition
  • - : Subtraction
  • * : Multiplication
  • / : Division
  • // : Integer Division (e.g., 6 // 4 = 1)
  • % : Remainder / Modulo (e.g., 6 % 4 = 2)
  • ** : Exponentiation

mass_in_kg = 15

weight_in_pounds = mass_in_kg * 2.2

print('the weight in pounds is: ', weight_in_pounds)

user_name = input("enter your user name: ")

print('hello', user_name)

Data Types

  • int: Integer numbers (e.g., -1, 0, 2, 1000)
  • float: Floating-point (real)
... Continue reading "Python Fundamentals and Algorithms Explained" »

Distillation and Absorption Tower Operation: Trays, Packings, Agitators

Classified in Other subjects

Written on in English with a size of 276.78 KB

Tray Tower Operation Issues

  1. Flooding: Excessive vapor flow reduces separation efficiency.
  2. Weeping: Insufficient vapor flow causes liquid leakage and poor mass transfer.
  3. Foaming: Stable foam reduces mass transfer efficiency.
  4. Entrainment: High vapor velocities carry liquid droplets, causing inefficiencies.

Packed Column Hydrodynamics

  1. Liquid Distribution: Uniform distribution is crucial; poor distribution leads to channeling.
  2. Pressure Drop: Lower than tray columns, but can increase with improper packing.
  3. Flooding: Excess gas flow reduces efficiency.
  4. Loading Point: Gas velocity causes resistance to liquid flow, increasing pressure drop.

Agitator Types

  • Propeller Agitators: For low-viscosity liquids, providing axial flow.
  • Turbine Agitators: For a wide range
... Continue reading "Distillation and Absorption Tower Operation: Trays, Packings, Agitators" »

Understanding Competition Law in India: Key Cases and Concepts

Classified in Law & Jurisprudence

Written on in English with a size of 4 KB

Key Mergers & Acquisitions

  • Etihad Airways and Jet Airways
  • Sun Pharma and Ranbaxy
  • Wal-Mart and Flipkart

Section 26 (1) of the Competition Act

On receipt of a reference from the Central/State Government, statutory authority, or upon its knowledge/information (under section 19), if the Commission believes a prima facie case exists, it shall direct the Director General to investigate.

Relevant Cases

  • CCI v. Steel Authority of India Ltd

Section 27(b): Penalties

The Commission may impose penalties, not exceeding 10% of the average turnover for the last three financial years, upon enterprises party to anti-competitive agreements or abuse of dominance.

Relevant Cases

  • Excel Crop Care Ltd v. CCI

Section 3(3): Anti-Competitive Agreements

Agreements that cause or... Continue reading "Understanding Competition Law in India: Key Cases and Concepts" »

Networking Essentials: TCP, IP, Routing, and SDN

Classified in Computers

Written on in English with a size of 3.21 MB

sMdRTz2CZp8AAAAASUVORK5CYII= 3sIS9NlspZMAAAAASUVORK5CYII=

8clQpOLAAAAAElFTkSuQmCC Pyzl774gh3lYAAAAAElFTkSuQmCC

QltAtfyLfn4RSLxAPwfE7YF1nxk+l4AAAAASUVORK5CYII= wGzRdTNkcDQPAAAAABJRU5ErkJggg==

CJ95H4KO90AAAAASUVORK5CYII= x82xiFmBI28qwAAAABJRU5ErkJggg==

IhgAAfcEVDuIM6TZl3sB7oF7ITsRWUQCAgICAgICAh50BAMgICAgICAgICAgYBghuDwDAgICAgICAgIChhGCARAQEBAQEBAQEBAwjBAMgICAgICAgICAgIBhhGAABAQEBAQEBAQEBAwjBAMgICAgICAgICAgYBghGAABAQEBAQEBAQEBwwjBAAgICAgICAgICAgYRggGQEBAQEBAQEBAQMAwQjAAAgICAgICAgICAoYRggEQEBAQEBAQEBAQMIwQDICAgICAgICAgICAYYRgAAQEBAQEBAQEBAQMIwQDICAgICAgICAgI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QQgghhBBlQ4JECCGEEEIIUTYkSIQQQgghhBBlQ4JECCGEEEIIUTYkSIQQQgghhBBlQ4JECCGEEEIIUTYkSIQQQgghhBBlQ4JECCGEEEIIUTYkSIQQQgghhBBlQ4JECCGEEEIIUTYkSIQQQgghhBBlQ4JECCGEEEIIUTYkSIQQQgghhBBlIkn+Ap8cqHZgf97HAAAAAElFTkSuQmCC wf2VtgLtGg7TgAAAABJRU5ErkJggg== h9ln1IBfnHvLQAAAABJRU5ErkJggg==

dbzB5RFEVRFEUpalRZURRFURRFURSlINEOdEVRFEVRFEVRChJVVhRFURRFURRFKUhUWVEURVEURVEUpSBRZUVRFEVRFEVRlAJE5P8BBNjgB+siH5YAAAAASUVORK5CYII= HHCNDVzGWfbp6Mjw43ecYaMOfkFRRFEXZjIoZRWnjcKwMxwpsbZ4IpX3AcVIcM7M110Jlz4TjXxjMoLVj1xRFUfYsgP8HTC7DNUfOHwwAAAAASUVORK5CYII= AAAAAElFTkSuQmCC B+6MyUcHUtKBAAAAAElFTkSuQmCC

1. TCP Congestion Control

Slow Start: TCP initializes congestion window (cwnd) to a small size and doubles it every Round Trip Time (RTT) until a loss occurs (exponential growth) or the slow start threshold is reached.

Congestion Avoidance: After reaching the threshold, cwnd is incremented by one segment for each RTT, growing linearly to avoid congestion.

Fast Recovery: When triple duplicate ACKs are detected, TCP halves the cwnd and reduces the slow start threshold to half of the cwnd size before the loss, then transitions to congestion avoidance.

2. TCP RTT and Timeout

Estimating RTT: Uses Smoothed Round Trip Time (SRTT) which is a weighted average of previous RTT measurements.

Timeout Calculation: Often calculated as Timeout=SRTT+4×RTT

... Continue reading "Networking Essentials: TCP, IP, Routing, and SDN" »

Textual Analysis in International Relations: A Practical Guide

Classified in Other subjects

Written on in English with a size of 4.79 KB

Different Approaches to Textual Data Analysis

1. Narrative Analysis

A narrative is essentially what is depicted and represented through an interview or a document.

2. Grounded Theory

An approach to develop theory inductively from textual data.

3. Discourse Analysis and Content Analysis

These are two distinct but related approaches to analyzing text and discourse.

Main Textual Analysis Methods for International Relations

  • Content Analysis
  • Discourse Analysis
  • Process Tracing

Qualitative Content Analysis

Qualitative content analysis is an economical text analysis procedure. It involves counting and quantifying elements in qualitative data.

Steps of Content Analysis

  1. Data Collection: Create a corpus of data by selecting relevant texts, images, or other data sources.
... Continue reading "Textual Analysis in International Relations: A Practical Guide" »

Practical English Language Drills: Grammar & Vocab

Classified in English

Written on in English with a size of 3.24 KB

Section 1: Comprehension and Vocabulary

1.1 Emotional Impact & Symbolism

  1. They can provoke strong feelings, similar to how personal photos do. (Lines 3-4)
  2. It is important because the polar bear on melting ice represents global warming and the human effect. (Lines 17-18)

1.2 Vocabulary: Synonyms

  • Conducted: Carried out
  • Very funny: Hilarious
  • Extremely sad: Heart-breaking
  • Brutal: Harsh

1.3 True or False Statements

  • False. (Lines indicate a third of the participants would save their photographs.)
  • False. (The birds made the writer smile.)
  • True. (Lines indicate he froze in fear.)

1.4 Multiple Choice Answers

  • c)
  • c)
  • a)

Section 2: Grammar Practice

2.1 Verb Tenses & Conditionals

  1. left / will be relaxing
  2. not to take / had listened / wouldn't have made
  3. wanted / had ...
... Continue reading "Practical English Language Drills: Grammar & Vocab" »

Classic Spaghetti Carbonara Recipe

Classified in Chemistry

Written on in English with a size of 1.87 KB

Spaghetti Carbonara

Utensils and Ingredients

Utensils

  • Large pot
  • Large skillet
  • Colander
  • Large bowl
  • Whisk or fork
  • Tongs or a pasta fork
  • Spoon or ladle

Ingredients:

  • 400g spaghetti
  • 200g pancetta or bacon, diced
  • 4 large eggs
  • 1 cup grated Parmesan cheese
  • 4 cloves garlic, minced
  • Salt and black pepper to taste
  • 2 tablespoons olive oil
  • Chopped parsley for garnish (optional)

Instructions

1.

Boil the Spaghetti

Start by boiling a large pot of salted water. While waiting, dice the pancetta, mince the garlic, and grate the Parmesan cheese.

2.

Cook the Spaghetti

Once the water boils, add the spaghetti and cook until al dente. Once cooked, reserve about a cup of pasta water before draining.

3.

Sauté the Pancetta and Garlic

In a large skillet, heat the olive oil over medium heat. Add... Continue reading "Classic Spaghetti Carbonara Recipe" »