This is the submission by :
Poojan Shah (netid : pss382 N Number : N10482975)
Rushabh Doshi (netid : rad460 N Number :N12727645)
FCS Homework 2
1.
Use the definition of big-O to prove that
Ans. Let us assume x > 1.
For x > k.
Since
This leads to
Where cor
This is the submission by:
Dhruv Amin (Net ID: dva227, N number: N11713617)
Poojan Shah (Net ID: pss382, N Number: N10482975)
Rushabh Doshi (Net ID: rad460, N Number: N12727645)
Homework 5
Problem #1
If T is a full binary tree with 101 vertices, its maxim
Submission by,
Dhruv Amin (dva227, N11713617)
Poojan Shah (pss382, N10482975)
Rushabh Doshi (rad460, N12727645)
Homework 6 - Boolean algebra
11
a) Explain how K-maps can be used to simplify sum-of products expansions in four Boolean variables.
Ans: A K-ma
Submission by,
Dhruv Amin (dva227, N11713617)
Poojan Shah (pss382, N10482975)
Rushabh Doshi (rad460, N12727645)
Counting
Problem 1 (5 points)
How many strings are there of four lowercase letters that have the letter x in them?
Ans: Number of possible stri
This is the submission by:
Dhruv Amin (Net ID: dva227, N number: N11713617)
Poojan Shah (Net ID: pss382, N Number: N10482975)
Rushabh Doshi (Net ID: rad460, N Number: N12727645)
Homework 4
This is the submission by:
Dhruv Amin (Net ID: dva227, N number: N11713617)
Poojan Shah (Net ID: pss382, N Number: N10482975)
Rushabh Doshi (Net ID: pss382, N Number: N12727645)
FCS Homework 3
Problem #1
Determine whether the following graphs are isomorph
C+ cin & Comments
Instructor: Krishna Mahavadi
cin operatator
cin is used to store the data obtained from the user in a
variable
cin works in conjunction with cout
Examples:
string name;
cout < Enter your first name: ;
cin > name;
int num;
cout < Pleas
If Construct in C+
Instructor: Krishna Mahavadi
Making Decisions
Computers can make decisions, example
Display greeting Mr. or Ms. based on user s gender
Display AM or PM based on time
Display advertising based on interest (google/facebook)
Check if
Pass by Reference
Instructor: Krishna Mahavadi
Pass by value
Everything we have done so far is pass by value
The value within the variable is passed to
the subfunction
The sub-function will take the value and store in a
variable within its own scope
T
Scope of Variables
The Concept of Scope
Author: Krishna Mahavadi
Concept of Scope
Scope The dictionary definition of scope is the
extent or range of view.
Where we declare a variable inherently
determines where it would be accessible in a
C+ program.
Decl
Arrays in C+
Instructor: Krishna Mahavadi
Reason behind the idea
When we are programming, often we have to
process a large amount of information. We
can do so by creating a lot of variables to keep
track of them.
However this approach is not the best. W
Using Functions in C+
Instructor: Krishna Mahavadi
Two Functions
sqrt( 4 );
Square root function finds the square root for you
It is defined in the cmath library, #include<cmath>
rand();
Random function generates random value for you
It is defined i
Editing, Compiling And
Executing Code
Instructor: Krishna Mahavadi
Editing a C+ file on a Linux Machine
To edit a file we need to use an editor.
Notepad is an example of an editor on a windows
machine.
We will use the pico editor on our Linux machine.
To
Recursion
Instructor: Krishna Mahavadi
Recursion:
A function calling itself to solve a simple
form of the same problem.
Recursive Function:
Base Case terminate case
Iterative Step What the function should do in
each step
Example
int r(int n)
cfw_
if(n <
C+ Variables
Instructor: Krishna Mahavadi
Variables in C+
Allow storage of data internally for the program
Allow storage of information from the user
There are different types of variables which
service different needs
Examples:
Variables that store t
Arithmetric C+
Instructor: Krishna Mahavadi
Calculations
Often when we write programs to simulate complex
phenomena.
For example, simulations to predict the earthquakes,
tsunamis or hurricanes all involve mathematical
calculations.
Or it could be data ana
2D Arrays in C+
Instructor: Krishna Mahavadi
Why 2D Arrays?
One dimensional arrays are great, but why
make such a fuss and create two
dimensional arrays?
What do we really gain from using a two
dimensional array?
What are some sensible uses of two
dime
While Construct in C+
Instructor: Krishna Mahavadi
Repeat Decision Making
Computers are great at repeating tasks
Building cars on the assembly line
You can picture this is the task of building one car
being repeated, as long as there are parts
Give us
More Comparison Operators
Instructor: Krishna Mahavadi
The and Operator &
We can combine two comparisons using the
and operator.
The symbol for and operator is &.
Syntax for a Boolean Expression using &
(comparison_1) & (comparison_2)
The Boolean exp
Using Functions in C+
Instructor: Krishna Mahavadi
Two Functions
sqrt( 4 );
Square root function finds the square root for you
It is defined in the cmath library, #include<cmath>
rand();
Random function generates random value for you
It is defined i
For Construct in C+
Instructor: Krishna Mahavadi
Repeating Tasks
C+ provides another way for us to repeat our
tasks
This is called a for loop
For loop has the same three parts as the while
loop:
Initialize Counter
Comparison on Counter
Update Counte
Getting Started
Instructor: Krishna Mahavadi
Grade Distribution
Lab Attendance & work done in the lab 10%.
Homework 10% (Usually one hw per week, 1% each)
Quizzes 10% (Usually one quiz per week, 1% each)
Submit all homework on Blackboard.
Submit questions
Lab-1 Report
Python script:
Because packets always get dropped, therefore, I send the dhcp_packet 15 times in total.
dhcpd.lease before attack:
dhcpd.lease after attack:
Victim Machine:
Message shows una
SECURITY REVIEWS: PC MONITOR
Summary
PC monitor, a screen that displays peripheral output to the user, which we use every day in our daily life, can
also be hijacked and turned against us.
At the annual DEF CON, researchers from Red Balloon Security p
CS6823 Network Security
Homework 2
This home work is worth a total of 30 points (3% of your total
course grade). It is composed of five true/false questions each
worth 2 points, two multiple part short answer with points
values marked for each pa
Operating
Systems:
Internals
and
Design
Principles
Chapter 6
Concurrency:
Deadlock and
Starvation
Seventh Edition
By William Stallings
Operating Systems:
Internals and Design Principles
When two trains approach each other at
a crossing, both shall come to