3rdsemFinal
3rdsemFinal
3rdsemFinal
A’s
Vachana Pitamaha Dr. P.G. Halakatti
College of Engineering & Technology,
Vijayapur – 586 103
COURSE FILE
2018-19
Semester – III
Name :
USN :
Roll No. :
Dear student,
Wish you happy academic year 2018-19.
You can go through this course file which gives overview of each course you are
going to study and its relevance to your program. You will find each course interesting /
understandable if you have complete knowledge of prerequisites. Learning objectives are
defined for each unit followed by lesson plan.
Assignment questions are given at the end of each unit which will help you to
prepare well during I.A. Tests and VTU Exams. Portion for I.A. Tests is known to you in
advance to plan your studies. VTU question papers are put at the end.
This course file will help you and your teacher in delivering curriculum
systematically. Kindly note following to achieve academic excellence.
VISION
MISSION
1. To provide quality technical education coupled with innovative research to boost the
career of students in IT industry, entrepreneurship, higher education and research.
2. To instill moral values, professional ethics and leadership qualities in students to
achieve professional success.
5. Modern tool usage: Create, select, and apply appropriate techniques, resources, and
modern engineering and IT tools including prediction and modeling to complex
engineering activities with an understanding of the limitations.
6. The engineer and society: Apply reasoning informed by the contextual knowledge to
assess societal, health, safety, legal, and cultural issues and the consequent
responsibilities relevant to the professional engineering practice.
8. Ethics: Apply ethical principles and commit to professional ethics and responsibilities
and norms of the engineering practice.
10. Communication: Communicate effectively with the engineering community and with
society at large. Be able to comprehend and write effective reports documentation.
Make effective presentations, and give and receive clear instructions.
12. Life-long learning: Recognize the need for, and have the preparation and ability to
engage in independent and lifelong learning in the broadest context of technological
change.
Program Specific Outcomes:
1. ENGINEERING MATHEMATICS-III
B.E.SYLLABUS FOR 2017-2021
(Common to all Branches)
MODULE-V:
Line integrals-definition and problems, surface and volume integrals-
definition, Green’s theorem in a plane, Stokes and Gauss-divergence
theorem (without proof) and problems. L2 & 10
Calculus of Variations: Variation of function and Functional, variation L3
problems. Euler’s equation, Geodesics, hanging chain, problems.
Note: - The SEE question paper will be set for 100 marks and the marks will be proportionately
reduced to 60.
The question paper will have ten full questions carrying equal marks.
Each full question consisting of 20 marks.
There will be two full questions (with a maximum of four sub questions) from
each module.
Each full question will have sub question covering all the topics under a module.
The students will have to answer five full questions, selecting one full question
from each module.
Text Books:
Reference books:
R1.N.P. Bali and Manish Goyal, "A text book of Engineering Mathematics”, Laxmi
publications, 7th Ed., 2010.
R2. B.V. Ramana, "Higher Engineering Mathematics", Tata McGraw-Hill, 2006.
R3.H. K. Das and Er. Rajnish Verma, "Higher Engineering Mathematics", S. Chand
Publishing, 1st edition, 2011.
Fourier series: Fourier series plays an important role in classical studies of the heat and
wave equations like: the study of sound, heat conduction, electromagnetic waves, mechanical
vibrations, and signal processing and image analysis. Fourier series is an infinite series
representation of periodic function in terms of trigonometric sine and cosine functions. It can
be used to solve ordinary and partial differential equations particularly with periodic
functions appearing as non-homogeneous terms. Fourier series can be constructed for one
period is valid for all values. Harmonic analysis is the theory of expanding functions in
Fourier series.
Fourier transforms and Z -Transforms: Fourier transform is a powerful tool in diverse
field of science and engineering. Fourier transform affords mathematical devices, through
which solution of numerous boundary value problems of engineering can be obtained, viz.,
conduction of heat, transverse oscillations of an elastic beam, free and forced vibrations of
membrane transmission lines etc. Z- Transforms play an important role in the field of
communication engineering and control engineering at the stage of analysis and
representation of discrete time linear shift in variance system.
Statistical Methods and Numerical methods: Statistical methods have meaningful
applications in production engineering, the analysis of experimental data, etc. The module
also reveals to minimize the error associated with experimental data, using least square
method. Numerical analysis provides various techniques to find approximate solution to
difficult problems using simplest operations. There are many phenomena where the changes
in one variable are related to the changes in the other variable i.e. a simultaneous variation
can be measured by the concept of correlation and regression. While, the correlation
coefficient measures the closeness, the regression equation is used for prediction or
estimation. Numerical methods are easily adoptable to solve algebraic and transcendental
equations by using computers.
Finite differences and Numerical integration: For an unknown function given at a set of
tabulated values, one can obtain interpolating polynomial and prediction of the unknown
function at the specified point, by using the knowledge of finite differences and central
differences. Numerical integration can be used for evaluating certain improper integrals and
to civil engineers for calculating the amount of earth that must be moved to fill a depression
or make a dam. Also, for calculating distance travelled by the particle.
Vector integration and Calculus of Variations: Vector integral calculus has applications in
fluid flow, design of underwater transmission cables, and heat flow in stars, study of
satellites. Line integrals can be used in the calculation of work done by variable forces along
paths in space and the rates at which fluids flow along curves and across boundaries. Green’s
theorem, a great theorem of calculus, which converts line integrals to double integrals,
evaluates flow and flux integrals across closed plane curves in non-conservative vector fields.
Stokes theorem states that the circulation of a vector field around the boundary of a surface in
space equals to the integral of the normal component of the curl of the field over the surface.
Gauss divergence theorem, which is important in electricity, magnetism and fluid flow, says
that the outward flux of a vector field across a close surface equals the triple integral of the
divergence of the field over the region enclosed by the surface. The calculus of variations
concerns with finding maximum or minimum value of a definite integral involving a certain
function. It has many more applications in fast growth in science and engineering.
4. Applications: Application of optical fiber communications includes
telecommunications, data communication video control, and protection
switching sensors, image processing and power application.
5. Module wise Plan:
15. Obtain the Fourier series of ‘y’ up to second harmonics, using the
following table: x: 0 1 2 3 4 5
y=f(x): 9 18 24 28 26 20
Lesson Plan:
Ref
Book/
Lect. Teaching PSOs POs COs
Topics covered
no. Method attained attained attained Chapter
no.
Infinite or complex Fourier
T1/22,
11 transforms and its inversion 2
T2/11
formulae, with properties
Examples T1/22,
12 2
T2/11
Fourier sine transforms and 1
T1/22,
13 its inversion formulae and 2
T2/11
examples
Fourier cosine transforms Chalk
and T1/22,
14 and its inversion formulae 2
Board 1, 2, 4, T2/11
and examples
5, 11
Examples T1/22,
15 2
T2/11
Difference equations- Basic
16 2 T1/23
definitions.
Z-transforms: definitions,
standard Z-transforms.
17 2 T1/23
Examples, Properties of Z-
transforms
Damping rule, Shifting rule,
18 initial value theorem, and 2 T1/23
final value theorem (without
proof)
Inverse Z-transforms and
19 2 T1/23
examples
Application of Z-transforms
20 to solve difference 2 T1/23
equations and examples
2.
1 x 2 : x 1
3. Find the Fourier transform of f ( x)
0 : x 1
x cos x sin x x
Hence evaluate a)
0 x 3
cos dx
2
b)
L1 & L2
x cos x sin x
0 x3
dx 2
.
4. Find the Fourier cosine transform of the function f(x) =
4x : 0 x 1
4 x : 1 x 4
0: x 4
5. Find the Fourier cosine transform of e -ax and xe -ax and
cos mx
hence deduce that dx e am
0 x2 a2 2a
.
e ax
6. Find the Fourier sine transform of f ( x) , a 0, x #0
x
x a
tan
1
hence show that sin x dx e
0 a 2
7. Find the inverse Fourier sine transform of
1 a
Fs ( ) e , 0.
Module-III Title : Statistical Methods , Curve fitting and Numerical Planned Hours: 10
methods hrs.
Lesson Plan:
Ref Book/
Teaching PSOs POs COs
Lect. no. Topics covered
Method attained attained attained Chapter no.
Review of measures of
21 3 T1/25.12,13
central tendency and T2/30.9
dispersion
Define correlation,
22 Karl Pearson’s 3 T1/25.14
correlation coefficient T2/30.9
formula and Examples
Define regression and
23 regression coefficients. 3 T1/25.16
Regression lines T2/30.10
Examples. 1 1, 2, 4,
Fitting of straight line:
24 5 & 11 3 T1/25.16
𝑦 = 𝑎𝑥 + 𝑏 and T2/30.10
examples
Fitting of parabola:
25 3 T1/24.5
𝑦 = 𝑎𝑥 2 + 𝑏𝑥 + 𝑐 and T2/30.3
examples
Fitting of curves: 𝑦 = Chalk T1/24.6
26 3
𝑎𝑒 𝑏𝑥 and problems and T2/30.4
About numerical Board
27 solutions of algebraic 3 T1/24.6
& transcendental T2/30.4
equations
28 Regula-Falsi method 3 T1/28.2
and examples T2/32.1
29 Newton-Raphson 3 T1/25.12,13
method and examples T2/30.9
T1/25.12,13
30 Examples 3 T2/30.9
Lesson Plan:
COs RB
Attaine T
d level
Assignment questions s
1. From the following data estimate the number of persons having income
between 2000 and 2500
Income Below500 500-1000 1000-2000 2000-3000 3000-4000
Number 6000 4250 3600 1500 650
of
persons
2. The table gives the distances in nautical miles of the visible horizon for
the given heights in feet above the earth’s surface.
X=height: 10
150 200 250 300 350 400
0
Y=distance 10.63 13.0 15.0 16.8 18.4 19.9 21.2
: 3 4 1 2 0 7 4 L1
&
Find the values of Y when X=218 ft and 410 ft.
L2
3. Using Lagrange’s interpolation formula find f(5.0) given
X: 1 3 4 6 9
Y: -3 9 30 132 156
4. Using Newton’s divided difference formula evaluate f(8) and f(15)
given,
X: 4 5 7 10 11 13
Y: 48 100 294 900 1210 2028
5. The following table given. The viscosity of an oil as a function of
temperature use Lagrange’s formula to find viscosity of oil at a
temperature of 140.
5.2
7. Evaluate ∫4 log 𝑥 𝑑𝑥 by applying Weddle’s rule, taking six equal
4
parts.
1 1
8. Evaluate the integral ∫0 𝑑𝑥 by using the Weddle’s rule with h =
1+𝑥 2
0.5. Compare the result with the actual value.
1 2
9. Given Evaluate the integral ∫0 𝑒 −𝑥 𝑑𝑥 using Simpson’s three eighth
rule.
2 1
10. Evaluate ∫0 𝑑𝑥 using Simpson’s (1/3)rd rule.
1+𝑥 3
function, functional,
Derivation of Euler’s
equations.
Std. variational problems- T1/35,
47
Geodesics, 1 , 2, 4, 5, 5 T2/21
Std. variational problems- Chalk 11 T1/35,
48 and
hanging chain. 5
Examples on Euler’s Board 5 T1/35,
49
equation
50 Some more examples 5 T1/35,
Course objectives:
This course will enable students to
1. Recall and Recognize construction and characteristics of JFETs and MOSFETs and
differentiate with BJT
2. Demonstrate and Analyze Operational Amplifier circuits and their applications
3. Describe, Illustrate and Analyze Combinational Logic circuits, Simplification of Algebraic
Equations using Karnaugh Maps and Quine McClusky Techniques.
4. Describe and Design Decoders, Encoders, Digital multiplexers, Adders and Subtractors,
Binary comparators, Latches and Master-Slave Flip-Flops.
5. Describe, Design and Analyze Synchronous and Asynchronous Sequential
6. Explain and design registers and Counters, A/D and D/A converters.
MODULE - 1 10 Hours
Field Effect Transistors: Junction Field Effect Transistors, MOSFETs, Differences between JFETs
and MOSFETs, Biasing MOSFETs, FET Applications, CMOS Devices. Wave-Shaping Circuits:
Integrated Circuit(IC) Multivibrators. Introduction to Operational Amplifier: Ideal v/s practical
Opamp, Performance Parameters, Operational Amplifier Application Circuits:Peak Detector Circuit,
Comparator, Active Filters, Non-Linear Amplifier, Relaxation Oscillator, Current-To-Voltage
Converter, Voltage-To- Current Converter.
(Text book 1:- Ch5:5.2, 5.3, 5.5, 5.8, 5.9, 5.1.Ch13: 13.10.Ch 16: 16.3, 16.4)
MODULE - 2 10 Hours
The Basic Gates: Review of Basic Logic gates, Positive and Negative Logic, Introduction to HDL.
Combinational Logic Circuits: Sum-of-Products Method, Truth Table to Karnaugh Map, Pairs Quads,
and Octets, Karnaugh Simplifications, Don’t-care Conditions, Product-of-sums Method, Product-of
sums simplifications, Simplification by Quine-McCluskyMethod, Hazards and Hazard covers, HDL
Implementation Models.
(Text book 2:- Ch2: 2.4,2.5. Ch3: 3.2 to 3.11.)
MODULE - 3 10 Hours
Data-Processing Circuits: Multiplexers, Demultiplexers, 1-of-16 Decoder, BCD to Decimal Decoders,
Seven Segment Decoders, Encoders, Exclusive-OR Gates, Parity Generators and Checkers,
Magnitude Comparator, Programmable Array Logic, Programmable Logic Arrays, HDL
Implementation of Data Processing Circuits. Arithmetic Building Blocks, Arithmetic Logic Unit Flip-
Flops: RS Flip-Flops, Gated Flip-Flops, Edge-triggered RS FLIP-FLOP, Edgetriggered D FLIP-
FLOPs, Edge-triggered JK FLIP-FLOPs.
(Text book 2:- Ch4:- 4.1 to 4.9, 4.11, 4.12, 4.14.Ch6:-6.7, 6.10.Ch8:- 8.1 to 8.5.)
MODULE - 4 10 Hours
Flip- Flops: FLIP-FLOP Timing, JK Master-slave FLIP-FLOP, Switch Contact Bounce Circuits,
Various Representation of FLIP-FLOPs, HDL Implementation of FLIP-FLOP. Registers: Types of
Registers, Serial In - Serial Out, Serial In - Parallel out, Parallel In - Serial Out, Parallel In - Parallel
Out, Universal Shift Register, Applications of Shift Registers, Register implementation in HDL.
Counters: Asynchronous Counters, Decoding Gates, Synchronous Counters, Changing the Counter
Modulus.
(Text book 2:- Ch 8: 8.6, 8.8, 8.9, 8.10, 8.13. Ch 9: 9.1 to 9.8. Ch 10: 10.1 to
MODULE - 5 10 Hours
Counters: Decade Counters, Pre settable Counters, Counter Design as a Synthesis problem, A Digital
Clock, Counter Design using HDL. D/A Conversion and A/D Conversion: Variable, Resistor
Networks, Binary Ladders, D/A Converters, D/A Accuracy and Resolution, A/D Converter-
Simultaneous Conversion, A/D Converter-Counter Method, Continuous A/D
Conversion, A/D Techniques, Dual-slope A/D Conversion, A/D Accuracy and Resolution.
(Text book 2:- Ch 10: 10.5 to 10.9. Ch 12: 12.1 to 12.10)
Text Book:
T1. Anil K Maini, Varsha Agarwal: Electronic Devices and Circuits, Wiley, 2012.
T2. Donald P Leach, Albert Paul Malvino & Goutam Saha: Digital Principles and Applications, 7 th
Edition, Tata McGraw Hill, 2014
Reference Books:
R1. Stephen Brown, Zvonko Vranesic: Fundamentals of Digital Logic Design with VHDL, 2nd
Edition,
Tata McGraw Hill, 2005.
R2. R D Sudhaker Samuel: Illustrative Approach to Logic Design, Sanguine-Pearson, 2010.
R3. M Morris Mano: Digital Logic and Computer Design, 10th Edition, Pearson, 2008.
Learning Objectives: At the end of this module students will be able to:
1. Types of FETs: JFETs and MOSFETs, Construction and operation of JFETs , Construction
and operation of MOSFETs, Comparison between JFETs and MOSFETs, Biasing of the
MOSFETs, Introduction to CMOS
2. Multivibrator circuits configuration around digital integrated circuits, Multivibrator circuits
configured around timer IC 555
3. Difference between an ideal and practical opamp Peak Detector Circuit, Absolute Value
Circuit Comparator, Active Filters, Phase Shifters Non-Linear Amplifier, Relaxation
Oscillator Current-To-Voltage Converter, Voltage-To-Current Converter, Sine Wave
Oscillators
Lesson Plan:
Text or
Lecture Teaching POs PSOs COs Reference
Topics Covered
No. Method Attained Attained Attained Book/Chapter
No.
Field Effect
Transistors: Chalk &
L 21 Junction Field Board, 1, 2 T1/5
Effect Transistors, PPT
MOSFETs, 1,2,3,4,5,11 1,2,3
Differences
Chalk &
between JFETs
L 22 Board, 1 T1/5
and MOSFETs,
PPT
Biasing
MOSFETs,
Chalk &
FET
Board,
L 23 Applications, 2, 3 T1/5
PPT
CMOS Devices.
Wave-Shaping
Circuits: Chalk &
L 24 Integrated Circuit Board, 2, 3 T1/13
(IC) PPT
Multivibrators.
Introduction to
Operational
Amplifier: Ideal Chalk &
L 25 v/s practical Board, 1,2 T1/16
Opamp, PPT
Performance
Parameters,
Operational
Amplifier Chalk &
L 26 Application Board, 3 T1/16
Circuits: Peak PPT
Detector Circuit,
Chalk &
L 27 Comparator Board, 2,3 T1/16
PPT
Chalk &
L 28 Active Filters Board, 2,3 T1/16
TPS
Non-Linear
Chalk &
Amplifier,
L 29 Board, 2, 3 T1/16
Relaxation
PPT
Oscillator
Current-To-
Voltage Chalk &
L 30 Converter, Board, 2,3 T1/16
Voltage-To- PPT
Current Converter
MODULE-2
MODULE WISE PLAN
1. Write the truth tables and draw the symbols for OR, AND, NOT, NOR, and NAND gates.
2. Demonstrate the ability to use basic Boolean laws.
3. Use the sum-of-products method to design a logic circuit based on a design truth table.
4. Be able to make Karnaugh maps and Entered variable maps and use them to simplify
Boolean expressions.
5. Use the product-of-sums method to design a logic circuit based on a design truth table.
6. Use Quine-McClusky tabular method for logic simplification.
7. Analyze hazards in logic circuit and provide solution for them.
8. HDL Implementation Models
Lesson Plan:
Text or
Lecture Topics Teaching POs PSOs Cos Reference
No. Covered Method Attained Attained Attained Book/Chapter
No.
Basic gates Chalk &
L 01. NOT, OR, Board, 1 T2/2
AND PPT
Universal Logic Chalk &
L 02 Gates NOR, Board, 1 T2/2
AND PPT
Chalk &
Positive and
L 03 Board, 1 T2/2
Negative Logic
PPT
Introduction to Chalk &
L 04 Board, 1 T2/2
HDL
PPT
Sum of- Chalk &
1,2,3,4,5,11 1,2,3
L 05 products Board, 1 T2/3
Method PPT
Truth Table to Chalk &
L 06 Karnaugh Map, Board, 2,3 T2/3
Pairs, Quads
and Octets PPT
Karnaugh
Simplifications
Chalk &
L 07 Don’t Care 2,3 T2/3
Board,
Conditions,
PPT
Product-of-
sums Method
L 08 Product-of- Chalk & 2,3 T2/3
sums Board,
Simplification PPT
Simplification
Chalk &
by Quine-
L 09 Board, 2,3 T2/3
McClusky
PPT
Method
Hazards and
Hazard Covers, Chalk &
L 10 HDL Board, 2,3 T2/3
Implementation PPT
Models
Questions for Practice:
Questions COs attained
1. Construct 3-I/O AND gate and 3 – I/O OR gate 1,2
2. What are universal gates? Realize basic gates using only NAND gates. 1,3
3. What is the purpose of using an expander with an AND-OR-INVERT gate?
Write a logic circuit of an expander driving expandable AND-OR-INVERT 1,3
gate.
4. Implement the following function using universal gates only
3
((A+B)C)D
5. Write the truth table of the logic circuits having 3 inputs A,B,C and the
output expressed as
Y= A B C + A B C + A B C + A B C 3
Also simplify the expression using Boolean algebra and implement the logic
circuit
6. Simplify the following logic equation using Karnaugh map and give the
implementation of the simplified expression 3
F(A,B,C,D)=∑m(7) + d(10,11,12,13,14,15)
7. What are the drawbacks of K-map? Simplify the following Quine-Mc
2,3
Clusky method F(A,B,C,D)=∑ (0,1,2,3,10,11,12,13,14,15)
8. Find Product Of Sum
3
Y= A B + A C + A D
9. Suppose a 4 input combinational logic circuit has high output for an input of
0000, low output, for 0001 to 1001 and don’t care s for 1010 to 1111 what is 3
the simplest logic circuit draw the truth table.
MODULE-3
MODULE WISE PLAN
Lesson Plan:
Reference
Lecture Teaching POs PSOs COs
Topics Covered Book/
No. Method attained Attained attained
Unit No.
Chalk &
Multiplexers,
L11. Board, 1,2 T2/4
Demultiplexers
PPT
Chalk &
1-of-16 Decoder , BCD-
L12. Board, 1,2 T2/4
to-Decimal Decoders
PPT
Chalk &
L13. Seven-segment 1,2 T2/4
Board,
Decoders, Encoders
PPT
EX -OR gates, Parity Chalk &
L14. Generators and Board, 1,2 T2/4
Checkers PPT
Magnitude Comparator, Chalk &
L15. Programmable Array Board, 2,3 T2/4
Logic PPT
Programmable Logic
Chalk & 1,2,3,4,5,11 1,2,3
L16. Array, HDL 2, 3 T2/4
Board,
Implementation of Data
PPT
Processing Circuits
Arithmetic Building Chalk &
L17. Blocks, Arithmetic Board, 2 T2/6
Logic Unit PPT,
Flip- Flops: RS Flip-
Chalk &
L18. Flops Gated Flip-Flops, 1,2 T2/8
Board,
Edge-triggered RS FLIP-
PPT
FLOP
Chalk &
Edge triggered
L19. Board, 1,2 T2/8
D FLIP-FLOPs
PPT
Chalk &
L20. Edge-triggered JK FLIP- 1,2 T2/8
Board,
FLOPs.
PPT
Questions for practice:
Questions COs attained
1. Design a 32 to 1 multiplexer using two 16 to 1 multiplexer and one 2 to 1 3
multiplexer
2. Show that using a 3 to 8 decoder and multi-input OR gate. The following
Boolean expressions can be realized
F1(A,B,C) = ∑m(0,4,6) 3
F2(A,B,C) = ∑m(0,54,6)
F3(A,B,C) = ∑m(1,2,3,7)
3. Show how two 1 to 16 demultiplexer can be connected to get a 1 to 32 3
demultiplexers.
4. Design Decimal to BCD encoder 3
5. What are different types of PLD’s and implement the 7-segment decoder 2,3
using PLA?
6. What is a magnitude comparator? Write the truth table and circuit diagram 1,2
of 1 bit comparator
7. Give verilog HDL code for 4-to-1 multiplexer using conditional assign and 3
case statements
8. Write verilog code for a combinational logic circuit that compares two 4-bit
output numbers A and B generates a 3-bit output Y. The 3-bits of Y 3
represent A=B, A>B & A<B
9. Explain the different types of flip flops along with their truth table. Also 1,2
explain the race around condition in flip flop
MODULE-4
MODULE WISE PLAN
MODULE-5
MODULE WISE PLAN
5. Understand A/D conversion using the simultaneous, counter, continuous and dual
slope methods.
6. Discuss the accuracy and resolution of A/D converters
Lesson Plan:
Reference
Lecture Teaching POs PSOs COs
Topics Covered Book/
No. Method attained attained attained
Unit No.
Chalk &
L 41 Decade Counters Board, 2,3 T1/10
PPT
Pre settable Counters, Chalk &
L 42 Counter Design as a Board, 2,3 T1/10
Synthesis Problem PPT
Chalk &
L 43 A Digital Clock Board, 2 T1/10
PPT
Chalk &
Counter Design using
L 44 Board, 2,3 T1/10
HDL PPT
Variable, Resistor Chalk &
L 45 Networks, Binary Board, 2,3 T1/12
Ladders PPT
D/A Converters, D/A
Accuracy and 1,2,3,4,5,11 1,2,3
Chalk &
Resolution A/D
L 46 Board, 1,2 T1/12
Converter- PPT
Simultaneous
Conversion
Chalk &
L 47 A/D Converter- 1,2 T1/12
Board,
Counter Method PPT
Continuos A/D Chalk &
L 48 Conversion, A/D Board, 1,2 T1/12
Techniques, PPT
Chalk &
L 49 Dual-Slope A/D 1,2 T1/12
Board,
Conversion PPT
Chalk &
L 50 A/D Accuracy and 1,2 T1/12
Board,
Resolution PPT
Questions for practice:
2,3
ASSIGNMENT QUESTIONS
ASSIGNMENT - I COs attained
Q.1. Simplify using K-maps F(a,b,c,d)= Min(7) +d(10,11,12,13,14,15) to 3
Min. SoP and PoS forms.
Q.2. Write HDL codes using –Structural Model, Dataflow Model and 2,3
Behavioural Model for Y = ~A+B.~C
Module -1 10 Hour
Introduction: Data Structures, Classifications (Primitive & Non Primitive), Data structure
Operations, Review of Arrays, Structures, Self-Referential Structures, and Unions. Pointers
and Dynamic Memory Allocation Functions. Representation of Linear Arrays in Memory,
Dynamically allocated arrays, Array Operations: Traversing, inserting, deleting, searching,
and sorting. Multidimensional Arrays, Polynomials and Sparse Matrices. Strings: Basic
Terminology, Storing, Operations and Pattern Matching algorithms. Programming Examples.
Text 1: Ch 1: 1.2, Ch2: 2.2 -2.7
Text 2: Ch 1: 1.1 -1.4, Ch 3: 3.1-3.3,3.5,3.7, Ch 4: 4.1-4.9,4.14
Ref 3: Ch 1: 1.4
Text Books:
T1. Fundamentals of Data Structures in C - Ellis Horowitz and SartajSahni, 2nd edition,
2014,
Universities Press
T2. Data Structures: A Pseudo-code approach with C - Gilberg&Forouzan, 2nd edition,
2014, Cengage Learning
Reference Books:
R1. Data Structures using C, second edition, Reemathareja, Oxford press
R2. Data Structures - Seymour Lipschutz, Schaum's Outlines, revised 1st edition,McGraw
Hill
R3. An Introduction to Data Structures with Applications- Jean-Paul Tremblay & Paul G.
Sorenson, 2nd Edition, 2013, McGraw Hill
R4. Data Structures using C - A M Tenenbaum, Pearson
R5. Data Structures and Program Design in C - Robert Kruse, PHI
most complex problems. It is challenging because the complex nature of the data structure
brings with it many concepts that change the way we approach the designs of programs.
This course covers the concepts ranging from Pointers to Linked Lists and even the
Graphical approach of these concepts like Trees, Graphs etc.
Applications:
1. Data Structures is applicable in studying Design and Analysis of Algorithms.
2. Data Structures helps in the Design of Microprocessors, Microcontrollers,
Compilers, and Text Editors.
3. Stacks closely relate to the Recursion concept that is used to solve complex
practical problems very easily and efficiently.
4. Linked lists are used in Polynomial Arithmetic.
5. Trees are extensively used in Computer Science to represent Algebraic formulae.
Allocation
Functions.
L5 Representation Chalk and 1,2,5,6 2,3 T1,T2, R1
of Linear Arrays Board
in Memory,
Dynamically
allocated arrays
L6 Traversing, Chalk and 1,2,5,6 2,3 T1, T2,R1
inserting, Board
deleting,
searching, and
sorting
L7 Multidimensiona Chalk and 1,2,5,6 2,3 T1, T2,R1
l Arrays, Board
Polynomials and
Sparse Matrices
L8 Strings: Basic Chalk and 1,2,5,6 2,3 T1,T2, R1
Terminology, Board
Storing
L9 Operations and Chalk and 1,2,5,6 2,3 T1, T2,R1
Pattern Matching Board
algorithms
L10 Programming Chalk and 1,2,5,6 2,3 T1, T2,R1
Examples Board
T1: Text book No.1 in VTU Syllabus. R1: Reference Book No.1 in VTU
Syllabus.
T2: Text book No.2 in VTU Syllabus.
Assignment Questions:
Assignment Questions COs attained
Q1)Given the following declarations: int x; double d; int *p; double *q; 1,2
Which of the following expressions are not allowed? i. p=&x; ii.
p=&d; iii. q=&x; iv. q=&d; v. p=x;
Q2) Write a C program that prints out the integer values of x, y, z in 1,2
ascending order using pointers.
Q3) What is a pointer variable? Can we have multiple pointers to a 1,2
variable?
Q4)Differentiate between: 1,2
i. Static memory allocation and Dynamic memory allocation.
ii. malloc( ) and calloc( ) functions.
Q5)Write a C program using pass by reference method to swap two char 1,2
an two float variables.
Q6) Give any two advantages and disadvantages of using pointers. 1,2,5
Q7) Write both iterative and recursive C functions to compute n !. 2
th
Q8) Write both iterative and recursive C functions to compute n 1,2
Fibonacci number.
Q9) Determine time and space complexity of iterative and recursive 1,2
functions to compute n ! and which among the two is better?
Q10) Determine time and space complexity of iterative and recursive 1,2
functions to compute nth Fibonacci number and which among the two is
better?
Q11) Write a C program to add two input matrices using dynamically 1,2
allocated arrays.
Q12) Write a C program to multiply two input matrices using dynamically 1,2,5
allocated arrays.
Q13) Write a C function to find the transpose of matrix using dynamically 1,2,5
allocated arrays.
Q14) Develop a structure to represent a Vehicle having properties like: 1,2
No. of wheels, Fuel, Seating capacity, Registration No. Create two
variables each for a Two-wheeler and a Four-wheeler category and place
the relevant data.
Module -2
Module : 02 No. of Hours: 10
Title: Linear Data structures and their sequential storage representations
Learning Objectives: The main objectives of this module are to:
expression
L14 Recursion - Chalk and 1,3,5,6 2,3 T1, T2
Factorial, Board
GCD,
Fibonacci
Sequence
L15 Tower of Chalk and 1,2,5,6 2,3 T1, T2
Hanoi, Board
Ackerman's
function
L16 Queues: Chalk and 1,3,5,6 2,3 T1, T2
Definition, Board
Array
Representation
, Queue
Operations
function.
L17 Circular Chalk and 1,3,5,6 2,3 T1, T2
Queues, Board
Circular
queues using
Dynamic
arrays
L18 Dequeues, Chalk and 1,3,5,6 2,3 T1, T2
Priority Board
Queues, A
Mazing
Problem
L19 Multiple Chalk and 1,3,5,6 2,3 T1, T2
Stacks and Board
Queues
L20 Programming Chalk and 1,3,5,6 2,3 T1, T2
Examples Board
T1: Text book No.1 in VTU Syllabus. T2: Text book No.2 in VTU Syllabus.
Q7) Explain the concepts of Infix, Postfix and Prefix expressions with 1,3
examples.
Q8) Convert the following Infix expressions into Postfix and Prefix 1,3,5
expressions:
i. ( ( A + B ) – C * D ^ E / F ) ii. A + ( B – C ) * D.
Q9) Write an algorithm to evaluate a valid postfix expression. Trace the 1,3,6
algorithm with a sample input.
Q10) Write a C program to convert a given valid parenthesized infix 1,3,5
expression to postfix.
Q11) Using the Stacks, write a C program to reverse an input string and 1,3,5
check for palindrome. Display appropriate messages.
Module -3
Module : 03 No. of Hours: 10
Title: Linear Data structures and their linked storage representations
Learning Objectives: The main objectives of this module are to:
PSOs Reference
Lecture Teaching Pos Cos attained Book/
Topics Covered
No. Method attained attained Chapter
No.
L21 Linked Lists: Chalk and 1,3,5,6 2,3 T2, R3
Definition, Board 1,2,3,4,5,10,12
Representation of
linked lists in
Memory
L22 Memory Chalk and 1,3,5,6 2,3 T2, T1
allocation; Board
Garbage
Collection
L23 Linked list Chalk and 1,3,5,6 2,3 T2, T1
operations: Board
Traversing,
Searching
L24 Insertion and Chalk and 1,3,5,6 2,3 T2, T1
Deletion. Doubly Board
Linked lists
L25 Circular linked Chalk and 1,2,5,6 2,3 T2, T1
lists, and header Board
linked lists
L26 Linked Stacks and Chalk and 1,3,5,6 2,3 T2, T1
Queues Board
L27 Applications of Chalk and 1,3,5,6 2,3 T2, T1
Linked lists Board
L28 Chalk and 1,3,5,6 2,3 T2, T1
Polynomials Board
L29 Sparse matrix Chalk and 1,3,5,6 2,3 T2, T1
represent ation Board
L30 Programming Chalk and 1,3,5,6 2,3 T2, T1
Examples Board
T1: Text book No.1 in VTU Syllabus. T2: Text book No.2 in VTU Syllabus.
Lesson Plan:
PSOs Reference
Lectu Teaching POs Cos attaine Book/
Topics Covered
re No. Method attained attained d Chapter
No.
L31 Trees: Terminology, Chalk and 1,3,5,6 2,3 T2, T1
Binary Trees Board 1,2,3,4,5,7,
L32 Properties of Binary Chalk and 11,12 1,3,5,6 2,3
trees Board
L33 Array and linked Chalk and 1,3,5,6 2,3 T2, T1
Representation of Board
Binary Trees
L34 Binary Tree Chalk and 1,3,5,6 2,3 T2, T1
Traversals - Board
Inorder, postorder,
preorder
L35 Additional Binary Chalk and 1,2,5,6 2,3 T2, T1
tree operations. Board
Threaded binary
trees
L36 Binary Search Trees Chalk and 1,3,5,6 2,3 T2, T1
– Definition, Board
L37 Insertion, Deletion Chalk and 1,3,5,6 2,3 T2, T1
Board
L38 Chalk and 1,3,5,6 2,3 T2, T1
Traversal,Searching Board
L39 Application of Chalk and 1,3,5,6 2,3 T2, T1
Trees-Evaluation of Board
Expression
L40 Programming Chalk and 1,3,5,6 2,3 T2, T1
Examples Board
T21: Text book No.1 in VTU Syllabus. T2: Text book No.2 in VTU
Syllabus
Assignment Questions: COs
attained
Q1) Explain with an example: 1,3
i. Trees ii. Degree of a Tree iii. Binary Tree iv. Priority Queues v.
Max Heap.
Q2) Prove that (i) the maximum number of nodes on level i of a binary 1,3,5
tree is 2i-1,
i ≥ 1. (ii) the maximum number of nodes in a binary tree of depth k is 2k –
1, k ≥ 1.
Q3) Write a recursive C function for inorder traversal of a binary tree 1,3,5
and trace it with a sample input.
Q4) Write a recursive C program to implement inorder, preorder and 1,3,5
postorder traversals of a binary tree.
Q5) Write the C functions to implement iterative inorder traversal and 1,3,5
level-order traversal of a binary tree.
Q6) Write the C functions to: i. Count the number of leaf nodes in a 1,3,5
binary tree. ii. Copy a binary tree.
Q7) Explain the concept of Threaded binary tree with a neat diagram 1,3,5
showing its memory representation.
Module -5
Module : 05 No. of Hours: 10
Title: Graphs
PSOs Reference
Lecture Teaching Pos Cos attained Book/
Topics Covered
No. Method attained attained Chapter
No.
L41 Graphs: Chalk and 1,4,5,6 2,3 T1,T2, R2
Definitions, Board 1,2,3,4,5,7,11,12
Terminologies
L42 Matrix and Chalk and 1,4,5,6 2,3 T1,T2, R2
Adjacency List Board
Representation
Of Graphs
L43 Elementary Chalk and 1,4,5,6 2,3 T1,T2, R2
Graph Board
operations,
Traversal
methods:
Breadth First
Search and
Depth First
Search
L44 Sorting and Chalk and 1,4,5,6 2,3 T1,T2, R2
Searching: Board
Insertion Sort
L45 Radix sort, Chalk and 1,4,5,6 2,3 T1,T2, R2
Address Board
Calculation Sort
L46 Hashing: Hash Chalk and 1,4,5,6 2,3 T1,T2, R2
Table Board
organizations,
Hashing
Functions
L47 Static and Chalk and 1,4,5,6 2,3 T1,T2, R2
Dynamic Board
Hashing
L48 Files and Their Chalk and 1,4,5,6 2,3 T1,T2, R2
Organization: Board
Data Hierarchy
L49 File Attributes, Chalk and 1,4,5,6 2,3 T1,T2, R2
Text Files and Board
Binary Files
L50 Basic File Chalk and 1,4,5,6 2,3 T1,T2, R2
ASSIGNMENT QUESTIONS
ASSIGNMENT - I COs attained
1.Determine time and space complexity of iterative and recursive functions 1,2
to compute n ! and which among the two is better?
2.Determine time and space complexity of iterative and recursive functions 1,2
to compute nth Fibonacci number and which among the two is better?
3. What is a stack? Explain and implement the basic operations on stack 1,3
using C.
4. Write a C program to implement stacks using dynamic arrays. 1,3,5
5. What is Queue? Explain various operations on Queue along with their C 1,3
functions.
6. Write a C program to implement a Circular queue. 1,3
4. COMPUTER ORGANIZATION
Semester: III Year: 2018-19
Subject Title: Computer Organization Subject Code: 17CS34
Number of Lecture
04 IA Marks 40
Hours/Week
Total Number of Lecture
50 Exam Marks 60
Hours
Credits 04 Exam Hours 03
MODULE – 1 10 Hours
Basic Structure of Computers: Basic Operational Concepts, Bus Structures, Performance –
Processor Clock, Basic Performance Equation, Clock Rate, Performance Measurement.
Machine Instructions and Programs: Memory Location and Addresses, Memory Operations,
Instructions and Instruction Sequencing, Addressing Modes, Assembly Language, Basic
Input and Output Operations, Stacks and Queues, Subroutines, Additional Instructions,
Encoding of Machine Instructions
MODULE - 2 10 Hours
Input/Output Organization: Accessing I/O Devices, Interrupts – Interrupt Hardware, Enabling
and Disabling Interrupts, Handling Multiple Devices, Controlling Device Requests,
Exceptions, Direct Memory Access, Buses Interface Circuits, Standard I/O Interfaces – PCI
Bus, SCSI Bus, USB.
MODULE - 3 10 Hours
Memory System: Basic Concepts, Semiconductor RAM Memories, Read Only Memories,
Speed, Size, and Cost, Cache Memories – Mapping Functions, Replacement Algorithms,
Performance Considerations, Virtual Memories, and Secondary Storage.
MODULE - 4 10 Hours
Arithmetic: Numbers, Arithmetic Operations and Characters, Addition and Subtraction of
Signed Numbers, Design of Fast Adders, Multiplication of Positive Numbers, Signed
Operand Multiplication, Fast Multiplication, Integer Division, Floating-point Numbers and
Operations.
MODULE – 5 10 Hours
Basic Processing Unit: Some Fundamental Concepts, Execution of a Complete Instruction,
Multiple Bus Organization, Hard-wired Control, and Micro programmed Control. Pipelining,
Embedded Systems and Large Computer Systems: Basic Concepts of pipelining, Examples of
Embedded Systems, Processor chips for embedded applications, Simple Microcontroller,
Forms of parallel processing, Array Processors, The structure of General-Purpose
Multiprocessors.
Text Books:
T1. Carl Hamacher, ZvonkoVranesic, SafwatZaky:Computer Organization, 5th Edition, Tata
McGraw Hill, 2002.(Listed topics only from Chapters 1, 2, 4, 5, 6, 7, 8, 9 and12)
Reference Books:
R1. William Stallings: Computer Organization & Architecture, 7 th Edition, PHI, 2006.
Book/Chapter
No.
Computer Types,
L1. Functional Units,
PPT 1,2 T1/1
Basic Operational
Concepts
Bus Structures,
PPT,
Performance –
Chalk
L2. Processor Clock, 1,2 T1/1
and
Basic Performance
Board
Equation
Clock Rate,
PPT,
Performance
Chalk
L3. Measurement, 1,2 T1/1
and
Historical
Board
Perspective
Numbers, Memory PPT,
L4. Location and Chalk
1,2 T1/2
Addresses, Memory and
Operations, Board
PPT,
Instructions and
L5. Chalk
Instruction 1,2,3 T1/2
and
Sequencing 1,3,12 1,2
Board
PPT,
L6. Addressing Modes, Chalk
1,2,3 T1/2
Assembly Language and
Board
PPT,
L7. Basic Input and Chalk
1,2 T1/2
Output Operations and
Board
PPT,
L8. Stacks and Queues, Chalk
1,2 T1/2
Subroutines and
Board
PPT,
Additional Chalk
L9. 2 T1/2
Instructions, and
Board
PPT,
Encoding of
Chalk
L10. Machine 2,3 T1/2
and
Instructions
Board
Questions for practice:
Questions COs Attained
1. Explain Big-Endian, Little-Endian assignment and byte 1,2
addressability.
2. Represent (-56)10 and (56)10 in sign magnitude, 1’s complement
1,2
and 2’s complement methods
3. Explain different functional units of a digital computer. 1,2,3
4. List and explain the developments made during different
1
generations of a computer.
5. What is a bus? Explain single bus structure in architecture.
1,2
6. Explain clearly SPEC Rating and its significance. 1,2
7. What is addressing mode?Explain different addressing modes
2,3
with example for each.
8. What is stack frame? Illustrate the use of stack frame in
1,2,3
subroutines.
9. Describethe use of shift and rotate with examples 2,3
10. Explain Byte addressability 2
11. What are assembler directives? Explain any two directives. 2,3
12. Convert the following pairs of decimal numbers to 5-bit, signed,
2’s complement binary numbers and add them. State whether or
not overflow occurs in each case.
a. 7 and 13
1,2,3,4
b. 7 and 13
c. -5 and 7
d. -14 and 11
e. -10 and -13
13. With the help of suitable examples, illustrate encoding of
2,3
machine instructions.
MODULE-2
Module Number: 2 No. of Hours: 10
Learning Objectives: The main objectives of this module are to
1. One of the basic features of a computer is its ability to exchange data with other devices.
2. It means computer performs various input/output operations.
3. One of the basic features of a computer is its ability to exchange data with other devices.
4. It means computer performs various input/output operations.
Lesson Plan:
Text or
Lecture Topics Teaching POs PSOs Cos Reference
No. Covered Method Attained Attained Attained Book/Chapter
No.
Accessing PPT,
L11. I/O Devices Chalk and 2,3 T1/5
Board
Interrupts – PPT, 1,3,12 1,2
L12. Interrupt Chalk and 2,3 T1/5
Hardware, Board
L13. Enabling PPT, 2,3 T1/5
Information Science and Engineering Page No 43
B.L.D.E.A’s
Dr. P. G. Halakatti College of Engineering and Technology, Vijayapur-586103
Department of Information Science and Engineering
PPT,
Replacement
L27. Chalk and 4 T1/7
Algorithms
Board
PPT,
Performance
L28. Chalk and 2,4 T1/7
Considerations
Board
PPT,
Virtual
L29. Chalk and 2,4 T1/7
Memories
Board
PPT,
Secondary
L30. Chalk and 2 T1/7
Memory
Board
Text or
Lecture Topics Teaching POs PSOs Cos Reference
No. Covered Method Attained Attained Attained Book/Chapter
No.
Arithmetic:
Numbers,
PPT,
Arithmetic
L31. Chalk and 1,2,4 T1/6
Operations
Board
and
Characters,
Addition and
PPT,
Subtraction of
L32. Chalk and 2,3,4 T1/6
Signed
Board
Numbers,
Addition and
PPT,
Subtraction of
L33. Chalk and 2,3,4 T1/6
Signed
Board
Numbers,
PPT,
Design of Fast
L34. Chalk and 2,3,4,6 T1/6
Adders
Board
Multiplication PPT, 1,2,3,4,12 1,2
L35. of Positive Chalk and 2,3,4 T1/6
Numbers, Board
Multiplication PPT,
L36. of Positive Chalk and 3,4 T1/6
Numbers, Board
Signed PPT,
L37. Operand Chalk and 2,3,4 T1/6
Multiplication, Board
PPT,
Fast
L38. Chalk and 3,4 T1/6
Multiplication,
Board
PPT,
Integer
L39. Chalk and 2,4 T1/6
Division,
Board
Floating-point PPT,
L40. Numbers and Chalk and 2,4 T1/6
Operations. Board
Questions for practice:
PPT,
Chalk
Microprogramme
L45. and 2,3,4 T1/7
d Control
Board
PPT,
Chalk
Microprogramme
L46. and 2,3,4 T1/7
d Control
Board
Pipelining,
Embedded
PPT,
Systems and
Chalk
L47. Large Computer and 2,4 T1/8
Systems: Basic
Board
Concepts
of pipelining,
Examples of
Embedded PPT,
Systems, Chalk
L48. Processor chips and 2,3,4 T1/9
for embedded Board
applications,
PPT,
Simple
Chalk
Microcontroller,
L49. and 2,4 T1/9,12
Forms of parallel
Board
processing
MODULE - 1 8 Hours
Introduction, Brief history. Unix Components/Architecture. Features of Unix. The UNIX
Environment and UNIX Structure, Posix and Single Unix specification. The login prompt.
General features of Unix commands/ command structure. Command arguments and options.
Understandingof some basic commands such as echo, printf, ls, who, date, passwd, cal,
Combining commands. Meaning of Internal and external commands. The type command:
knowing the type of a command and locating it. The man command knowing more about
Unix commands and using Unix online manual pages. The man with keyword option and
whatis. The more command and using it with other commands. Knowing the user terminal,
displaying its characteristics and setting characteristics. Managing the non-uniform behaviour
of terminals and keyboards. The root login. Becoming the super user: su command. The
/etc/passwd and /etc/shadow files. Commands to add, modify and delete users.
Topics from chapter 2 , 3 and 15 of text book 1,chapter 1 from text book 2
MODULE – 2 8 Hours
Unix files. Naming files. Basic file types/categories. Organization of files. Hidden files.
Standard directories. Parent child relationship. The home directory and the HOME variable.
Reaching required files- the PATH variable, manipulating the PATH, Relative and absolute
pathnames. Directory commands – pwd, cd, mkdir, rmdir commands. The dot (.) and double
dots (..) notations to represent present and parent directories and their usage in relative path
names. File related commands – cat, mv, rm, cp, wc and od commands. File attributes and
permissions and knowing them. The ls command with options. Changing file permissions: the
relative and absolute permissions changing methods. Recursively changing file permissions.
Directory permissions.
MODULE – 3 8 Hours
The vi editor. Basics. The .exrc file. Different ways of invoking and quitting vi. Different
modes of vi. Input mode commands. Command mode commands. The ex mode commands.
Illustrative examples Navigation commands. Repeat command. Pattern searching. The search
and replace command. The set, map and abbr commands. Simple examples using these
commands. The shells interpretive cycle. Wild cards and file name generation. Removing the
special meanings of wild cards. Three standard files and redirection. Connecting commands:
Pipe. Splitting the output: tee. Command substitution. Basic and Extended regular
expressions. The grep, egrep. Typical examples involving different regular expressions.
Topics from chapters 7, 8 and 13 of text book 1. Topics from chapter 2 and 9 ,10 of
text book 2
MODULE – 4 8 Hours
Shell programming. Ordinary and environment variables. The .profile. Read and readonly
commands. Command line arguments. exit and exit status of a command. Logical operators
for conditional execution. The test command and its shortcut. The if, while, for and case
control statements. The set and shift commands and handling positional parameters. The here
( << ) document and trap command. Simple shell program examples. File inodes and the
inode structure. File links – hard and soft links. Filters. Head and tail commands. Cut and
paste commands. The sort command and its usage with different options. The umask and
default file permissions. Two special files /dev/null and /dev/tty.
Topics from chapter 11, 12, 14 of text book 1,chapter 17 from text book2
MODULE – 5 8 Hours
Meaning of a process. Mechanism of process creation. Parent and child process. The ps
command with its options. Executing a command at a specified point of time: at command.
Executing a command periodically: cron command and the crontab file.. Signals. The nice
and nohup commands. Background processes. The bg and fg command. The kill command.
The find command with illustrative example. Structure of a perl script. Running a perl script.
Variables and operators. String handling functions. Default variables - $_ and $. –
representing the current line and current line number. The range operator. Chop() and
chomp() functions. Lists and arrays. The @- variable. The splice operator, push(), pop(),
split() and join(). File handles and handling file – using open(), close() and die () functions..
Associative arrays – keys and value functions. Overview of decision making loop control
structures – the foreach. Regular expressions – simple and multiple search patterns. The
match and substitute operators. Defining and using subroutines.
Topics from chapter 9 and 19 of text book 1. Topics from chapter 11 of reference book 1
Course outcomes:
After studying this course, students will be able to:
Explain UNIX system and use different commands.
Compile Shell scripts for certain functions on different subsystems.
Demonstrate use of editors and Perl script writing
Q9) Explain the concept of absolute & relative pathname with suitable 1
examples.
Q10) Explain briefly the file attributes listed using ls –l command. 1
Q11) What is file permission? What are different ways of setting file 1
permission? Explain.
MODULE – 2
Module Number: 2 Planned Hours: 08
Learning Objectives: At the end of this chapter students will be able to:
1) Explain basics of vi editor.
2) Writes programs to illustrate the features of vi editor.
3) Express the basics of shell programming.
4) Demonstrates the working of Shell programming.
Lesson Plan:
PSOs Reference
Lecture Teaching POs Attained Cos Book/
Topics Covered
No. Method Attained Attained Chapter
No.
Unix files. Naming T1/2
files. Basic file
Chalk
types/categories.
L9 Organization of files. and 2
Hidden files. Standard Board
directories. Parent child
relationship.
The home directory and T1/2
the HOME variable. Chalk
L10 Reaching and 2
required files- the Board 2
PATH variable,
manipulating the PATH
Relative and absolute 2 T1/2
pathnames. Chalk
L11 Directory commands – and 1,2,3,4,5,12
pwd, cd, mkdir, rmdir Board
commands
The dot (.) and double 2 T1/2
dots (..) notations Chalk
to represent present and
L12 parent directories and
and
their usage in relative Board
path names
Q3) Explain the commands search for pattern and search & replace in vi
2
editor.
Q4) Explain the following with respect to vi editor. 2
i) Search for a pattern printf, then repeat the search in both forward and
backward direction. ii) :$s|director| member|g iii) : .w tempfile iv) : . , $w
tempfile v)recover vi) 20h
Q5) What is a Standard input, Standard output & Standard error? Explain 2
with respect to UNIX.
Q6) Frame wild-card patterns: 2
i) Where the last character is not numeric. ii) That have atleast four
characters.
Q7) Explain the concept of Escaping and Quoting with suitable examples. 2
Q8) What is job? Describe different job control facilities with suitable 2
examples.
Q9) Explain the mechanism of process creation and role of system calls. 2
Q10) Explain the ps & kill commands with suitable example and list its 2
options.
Q11) Explain following environment variables with examples. 2
i) TERM ii) PATH iii) HOME iv) PS1
MODULE – 3
Module Number: 3 Planned Hours: 08
Learning Objectives: At the end of this chapter students will be able to:
1) Explain basics of communication.
2) Express features of interactive Korn shell.
3) Write Korn shell program to illustrate the features in Korn shell.
Lesson Plan:
PSOs Reference
Lecture Teaching POs Cos
Topics Covered Attained Book/
No. Method Attained Attained Chapter
The vi editor. Basics. No.
T1/7
Chalk
The .exrc file. Different
L17 ways of invoking and
and 3,4
quitting vi Board
3,4 T1/7
Different modes of Chalk
vi. Input mode
L18 commands. Command
and
mode commands. Board
2,3
The ex mode 3,4 T1/13
commands. Illustrative
Chalk
L19 examples Navigation and
commands. Repeat Board
command.
Pattern searching. The 3,4 T1/13
Chalk
search and replace
L20 command. The set, map
and
and abbr commands. Board 1,2,3,4,5,12
Simple examples using 3,4 T1/13
these commands. Chalk
L21 The shells interpretive and
cycle. Wild cards and Board
file name generation
Learning Objectives: At the end of this chapter students will be able to:
1) Explain the basics of file I/O.
2) Express the process creation ,deletion and any modifications that can be done to
process.
3) Write program to illustrate file I/O operations and process activities.
Lesson Plan:
Reference
Lecture Teaching POs PSOs Cos Book/
Topics Covered
No. Method Attained Attained Attained Chapter
No.
Shell programming.
Ordinary and Chalk
environment variables.
L25 and 5 T2/3
The .profile. Read and
readonly Board
commands.
Command line Chalk T2/3
L26 arguments. exit and exit and 5
status of a command. Board
T2/3
Logical operators for Chalk
conditional execution.
L27 The test command and
and 5
its shortcut. Board
Q3) if you open a file for read-write with the append flag,can you still read
from anywhere in the file using lseek? Can you use lseek to replace existing 5
data in the file? Write a program to verify this.
Q4) is there any way for a function that is called by main to examine the
command-line arguments,without (a) passing argc and argv as arguments
5
from main to the function, or (b) having main copy argc and argv into global
variables?
Q5) Some Unix implementations purposely arrange that, when a program is
5
executed , location 0 in the data segment is not accessible. Why?
Q6) If we allocate an array of longs using calloc is the array initialized to 0?
If wqe allocate an array of pointers using calloc is the array initialized to null 5
pointers?
Q7)Use the typedef facility of C to define a new data type Exitfunc for an
5
exit handler . Redo the prototype for atexit using this data type.
MODULE – 5
Module Number: 5 Planned Hours: 08
Learning Objectives: At the end of this chapter students will be able to:
1) Explain process control mechanism.
2) Express the relationship between the processes.
3) Demonstrate the process control activities and process relationships through programming.
Lesson Plan:
Reference
Lecture Teaching POs PSOs Cos Book/
Topics Covered
No. Method Attained Attained Attained Chapter
No.
Meaning of a 6 T2/8
process. Mechanism
of process creation. Chalk
Parent and child
L33 process. The ps and
command Board
with its options.
Executing a
command a at
Executing a 6 T2/8
specified point of
command
time: at command.
periodically: cron Chalk 1,2,3,4,5,7,12 1,2
L34 command and the and
crontab file.. Signals. Board
The nice and nohup
commands.
Background 6 T2/8
The bg and fg
processes.
command. The kill Chalk
L35 command. The find and
command with Board
illustrative example.
5) Write a small program that calls fork and has the child create a new
session. Verify that the child becomes a process group leader, and that the 6
child no longer has a controlling terminal.
Assignment Questions
Assignment 1:
Assignment Questions COs attained
Q1) With diagram, explain the relationship between the kernel & shell in
1
UNIX.
Q2) Explain the salient features of UNIX operating system. 1
Q3) Explain briefly the file attributes listed using ls –l command. 1
Q4) Explain the different modes of operation in a vi editor with neat 2
diagram.
Q5) How to do the following using vi editor: 2
i) Combine 5 lines in to single line ii) Move the cursor to last line
in a file iii) Replace has with have in the current line iv) Add /* at the
beginning of the and */ at end of line
Assignment 2:
Q1) ) How can you create a child shell? How can you move to the parent
3,4
shell after creating a child?
Q2) Define the ftp utility.what does ftp stand for?what is its application? 3,4
Q3) When do we use each of the following utilities? 3,4
a.talk b.write c.mail d.telnet e.ftp
Q4) Assume the process executes following three function calls.
fd1=open(pathname,oflags);
fd2=dup(fd1);
fd3=open(pathname,oflags); 5
Draw the resulting picture.which descriptors are affected by fcnt1 on
fd1 with a command of F_SETFD? Which descriptors are are affected
by an fcnt1 on fd1 with a command F_SETFL?
Q5) if you open a file for read-write with the append flag,can you still read
from anywhere in the file using lseek? Can you use lseek to replace existing 5
data in the file? Write a program to verify this.
Assignment 3:
Q1)How can a process obtain its saved set_user_ID? 6
Q2) Write a program that creates a zombie and then call system to execute
6
the ps(1) command to verify that the process is a zombie.
Q3) In program we call exec1 , specifying the pathname of the interpreter
file. If we called exec1p instead, specifying a filename to tsetinterp, and if the
6
directory /home/stevens/bin was a path prefix, what would be printed as
argv[2] when the program is run.
Q4) in the discussion of utmp and wtmp. Why are the logout records written
by the 4.3+BSD init process? Is this handled the same way for a network 6
login?
Q5) Write a small program that calls fork and has the child create a new
session. Verify that the child becomes a process group leader, and that the 6
child no longer has a controlling terminal.
5) Portion for I. A. Tests:
Test Units COs Attained
I Module 1, Module 2 1, 2, 3
II Module 3, Module 4 (4 hours) 1, 4, 5
III Module 4(4 hours), Module 5 5, 6
Module-1 10 Hours
Fundamentals of Logic: Basic Connectives and Truth Tables, Logic Equivalence – The
Laws of Logic, Logical Implication – Rules of Inference. The Use of Quantifiers, Quantifiers,
Definitions and the Proofs of Theorems.
Module-2 10 Hours
Properties of the Integers: Mathematical Induction, the Well Ordering Principle –
Mathematical Induction, Recursive Definitions. Fundamental Principles of Counting: The
Rules of Sum and Product, Permutations, Combinations – The Binomial Theorem,
Combinations with Repetition
Module-3 10Hours
Relations and Functions: Cartesian Products and Relations, Functions – Plain and One-to-
One, Onto Functions. The Pigeon-hole Principle, Function Composition and Inverse
Functions. Properties of Relations: Computer Recognition – Zero-One Matrices and
Directed Graphs, Partial Orders – Hasse Diagrams, Equivalence Relations and Partitions.
Module-4 10 Hours
The Principle of Inclusion and Exclusion: The Principle of Inclusion and Exclusion,
Generalizations of the Principle, Derangements – Nothing is in its Right Place, Rook
Polynomials. Recurrence Relations: First Order Linear Recurrence Relation, The Second
Order Linear Homogeneous Recurrence Relation with Constant Coefficients.
Module-5 10Hours
Introduction to Graph Theory: Definitions and Examples, Subgraphs, Complements, and
Graph Isomorphism, Vertex Degree, Euler Trails and Circuits. Trees: Definitions, Properties,
and Examples, Routed Trees, Trees and Sorting, Weighted Trees and Prefix Codes.
Text Books:
We are living in a digital era. The digital signals criss cross and transcends us at all
times and at all points. It’s difficult to live without using an application related to the
digitalizing concepts. As the name of the word suggests, we are to deal with digits, the
discrete numbers and their fantastic properties. Humanity has narrowed down on two of the
ten digits known, the numbers 0 and 1 as basic code elements and thus developed the concept
of digitalizing.
Still, philosophers and scientists wonder at questions like whether nature is discrete or
continuous at a very fundamental level, whether time, without which we cannot imagine a
motion, is discrete or continuous. So, a fundamental understanding of this discreteness is in
demand, A young and dynamic can never rest until is quenches its thirst of knowledge about
this discreteness
1. State the correctness of an argument using proportional and predicate logic and truth
tables.
2. Explain mathematical arguments using logical connectives, quantifiers, methods of proof
and disproof, and mathematical induction.
3. Solve problems involving relations, recurrence relations and generating functions.
4. Solve problems using basic graph theory and Identify induced subgraphs, Hamiltonian
and/or Eulerian in graphs.
5. Identify properties of trees and solve problems using weighted trees and prefix codes.
6. Compute the number of possible outcomes of elementary Combinatorial processes such
as permutations and combinations, addition principle, rook polynomials.
Applications:
1) Direct proof
2) Indirect method
3) Proof by contradiction
4) Proving by Implications
5) Proving Equivalent Statement.
MODULE WISE PLAN
MODULE-1
Module: 1 Planned Hours: 10
Module Title: Fundamentals of logic
Learning Objectives: At the end of this module students will be able to:
1 Define logic
2 Write Logic connectives and construction of truth table
3 Evaluate Tautologies and contradiction
4 Defines logic implications
5 Analyze logic equivalence, duality and laws of logic
6 Apply rules of inference.
7 Define and evaluate the truth values of quantifiers.
8 Incorporate methods of proof and disproof
Lesson Plan:
Reference
Lecture Teaching POs PSOs COs Book/
Topics Covered
No. Method attained attained attained Chapter
No.
Chalk and T1/2
Introduction to the Board & 1
L1. TPS 1
mathematical logic
(Think, Pair
& Share)
Basic connectives and Chalk and T1/2
L2. Board, 1 1
truth tables
Logical equivalence- TPSand
Chalk T1/2
L3. Board, 1 1
Laws of logic
TPSand T1/2
Chalk
L4. Problems on the same 1 1
Board
1,
Logical Implication - Chalk and 2, T1/2
L5. Board, 1 1
Rules of inference 9,
TPSand
Chalk 11. T1/2
L6 Problems on the same Board, 1 1
TPSand
Chalk
L7. The Use of Quantifiers Board 1 1,2 T1/2
primitive statements p, r, and s for which the truth value of the statement
(q→[( p r) Λ s]) Λ [ s → ( r Λ q)] is 1
6. Define the tautology [(p→ q) Λ (p→ r) Λ(q→ r)] → r is a tautology by
2
constructing truth table.
7. Define dual of logic statement write the the dual of logic statement
1
(p T0) Λ(q F0) (rΛsΛT0)
8. Give: i) A direct proof ii) An indirect proof iii) Proof by contradiction, for 2
the Following statement, “If n is an odd integer, then n+9 is an integer”.
9. Test the validity of the following arguments using rule of inference.
i) If there is strike by students, then examination will be postponed.
Examination was not postponed
MODULE-2
Module: 2 Planned Hours: 10
Module Title: Properties of the Integers
Learning Objectives: At the end of this module students will be able to:
1 Define Mathematical Induction
2 Express the Well Ordering Principle – Mathematical Induction
3 Define Recursive Definitions
4 Explain the concept and rules of sum and product
5 Explain Permutation and Combination theory and its applications
6 Differentiate combinations with repetitions from combinations
7 Apply the concept of Binomial theorem and Catalan numbers
Lesson Plan:
.T1/4: Text book No.1 in VTU Syllabus and chapter No.4 in that text book.
Reference
Lecture Teaching POs PSOs COs Book/
Topics Covered
No. Method attained attained attained Chapter
No.
L11, Mathematical Chalk and
Board 1 2 T1/4
Induction
Chalk and
L12. Problems on the same Board 1 2 T1/4
The Well Ordering T1/4
Chalk and
L13. Principle – 1 2
Board
Mathematical
Induction Chalk and T1/4
L14. Recursive Definitions 1 2
Board
The Rules of Sum and Chalk and 1,
L15. 2, 1 6 T1/1
Product Board
3,
Chalk and
L16, 9,
Permutations Board, 1 6 T1/1
10.
TPS
Chalk and
L17. Combinations Board & 1 6 T1/1
PPT
L18, Chalk and
The Binomial Theorem 1 6 T1/1
Board
Combinations with Chalk and 1
L19. Board 6 T1/1
Repetition
Chalk and 1 6
L20. Problems on the same Board T1/1
T1/1: Text book No.1 in VTU Syllabus and chapter No.1 in that text book.
Assignment Questions:
Assignment Questions COs
attained
1. A sequence { a n } defined by a1 4, an n an1 forn 2 show that explicit
2
1
expression of a n = 3 (n 2 n)
2
2. Prove by mathematical induction, O[P(A)]= . If O(A)=n where A is given
2
set.
3.Prove by mathematical induction , that
1 2
12 3 2 5 2 (2n 1) 2 n(2n 1)( 2n 1) For all integers n>=1.
3
4. Obtain a recursive definition for the sequence { a n } in each of the following 2
Lesson Plan:
Reference
Lecture Topics Covered Teaching POs PSOs COs Book/
No. Method attained attained attained Chapter
No.
Chalk and
Cartesian Products and
L21. Board, 1, 1 3 T1/5
Relations
PPT 2,
Functions – Plain and Chalk and 3,
L22 One-to-One,Onto Board, 4, 1 3 T1/5
Functions PPT 5,
T1/5: Text book No.1 in VTU Syllabus and chapter No.5 in that text book.
T1/7: Text book No.1 in VTU Syllabus and chapter No.7 in that text book.
Assignment Questions:
Assignment Questions COs
attained
1. Prove that the function f: AB is invertible .if it is one to one and onto. 3
2. Define stirlings number of 2nd kind. If |A| =7,|B|=4 find number of onto
3
function from A to B that is p (m,n).
3.Define the function composition and let A={1,2,3,4},B={a,b,c} and
C={w,x,y,z} With f: A B and g: BC, given by f={(1,a),(2,a),(3,b),(4,c)} and 3
g={( a,x),(b,y),(c,z)}.For each of the element of A find gof.
4. If f(x) =x-1,g(x)=3x, h(x)= 0 x even
1 x odd 3
Show that fo (goh) =(fog)oh.
5. State the pigeonhole principle. Let ABC be an equilateral triangle with
AB=1.show that if we select five points in the interior of this triangle, there must 3
be at least two whose distance apart is less than ½.
1. 6. Define a poset .consider the Hasse diagram of a poset (A, R).given below in 3
fig.
If B={ c, d ,e }, find ( if they exist)
i) The least upper bound of B
ii) The greatest lower bound of B
Learning Objectives: At the end of this chapter student will be able to:
1 Evaluate theoretical concepts of Inclusion and Exclusion
2 Deduce generalized inclusion and exclusion principle
3 Apply the concept of derangements and the Rook polynomials
4 Apply the first order and second order linear homogeneous recurrence relations
5 Explain the concept of non-homogeneous recurrence relations
6 Analyze generating functions and its applications
Lesson Plan:
Reference
Lecture Topics Covered Teaching POs PSOs COs Book/
No. Method attained attained attained Chapter
No.
The Principles of Chalk and
L31. Inclusion and 1 6 T1/8
Board, PPT
Exclusion
Examples on the Chalk and
L32 1 6 T1/8
principle Board
Generalizations of the Chalk and
L33. 1 6 T1/8
principle Board
Examples on the Chalk and
L34. 1 6 T1/8
generalizations Board, PPT
Derangements-
Chalk and
L35 Nothing is in its Right 1 6 T1/8
Board, PPT
Place 1,
Rook polynomials and Chalk and 2,
L36. 9. 1 6 T1/8
examples Board
First order Linear Chalk and
L37. recurrence relation 1 3 T1/10
Board
Examples on first Chalk and
L38. order Linear Board, PPT 1 3 T1/10
recurrence relation
Second order Linear Chalk and
L39 Homogeneous Board, PPT 1 3 T1/10
Recurrence
Examples on Second Chalk and
L40. order Linear Board, PPT 1 3 T1/10
Homogeneous
T1/8: Text book No.1 in VTU Syllabus and chapter No.8 in that text book.
T1/10: Text book No.1 in VTU Syllabus and chapter No.10 in that text book.
Assignment Questions:
COs
Assignment Questions attained
1. Determine the number of +ve integers n where 1 ≤ n ≤ 100 and n is not 3
divisible by 2, 3, or 5.
2. In how many ways can 4A’s, 3B’s and 2C’s be arranged so that all identical 3
letters are not in a single block?
3. Find the number of permutations of a, b, c, ……, z in which none of the 3
patterns spin, game, path or net occurs.
4. An Apple, a Banana, a Mango and an Orange are to be distributed to four boys 3
B1, B2, B3 and B4. The boys B1 and B2 do not wish to have the Apple, the boy B3
does not want the Banana or Mango and B4 returns the Orange. In how many ways
MODULE-5
Module: 5 Planned Hours:10
Module Title: Introduction to Graph Theory
Learning Objectives: At the end of this chapter student will be able to:
Lesson Plan:
Reference
Lecture Teaching POs PSOs Cos Book/
Topics Covered
No. Method attained attained attained Chapter
No.
Definition and Chalk and
L40. 1 4 T1/11
examples, Subgraphs Board
Complements, Graph Chalk and
L41. 1 4
isomorphism Board T1/11
Vertex degree and Chalk and
L42. 2, 1 4
Euler trails and circuits Board T1/11
3,
Problems on Euler Chalk and 4,
L43. trails and circuits, 1 4
Board 9, T1/11
Classical problems
Information Science and Engineering Page No 75
B.L.D.E.A’s
Dr. P. G. Halakatti College of Engineering and Technology, Vijayapur-586103
Department of Information Science and Engineering
Reference
Lecture Teaching POs PSOs Cos Book/
Topics Covered
No. Method attained attained attained Chapter
No.
Definitions and related Chalk and 10,
L44. 11. 1
terms Board T1/11
Chalk and
L45. Properties, Examples 1 4
Board T1/11
Chalk and
L46. Routed Trees Board 1 5 T1/12
Chalk and
L48. Weighted Trees 1 5 T1/12
Board
Chalk and
L49. Prefix Codes 1 5 T1/12
Board
Chalk and
L50. Problems on the same 1 5 T1/12
Board
T1/11: Text book No.1 in VTU Syllabus and chapter No.11 in that text book.
T1/12: Text book No.1 in VTU Syllabus and chapter No.12 in that text book.
Assignment Questions:
Assignment Questions COs
attained
1. ) Define, with one example for each: Directed Graphs, Graphs, In-Degree, Out- 4
Degree, Isolated Vertex, Pendant Vertex, Induced Subgraph, Spanning
Subgraph, Connected Graph, Regular Graph, Complement of a Graph, Euler
Trail and Euler Circuit, Complete Graph, Isomorphism of Graphs.
2. Explain the Handshaking property with an example. 4
3. Explain Isomorphism of graphs with an example. 4
4. Show that in a graph G, the number of odd degree vertices is even. Find the 4
number of vertices and number of edges in K4,7 and K7,11.
5. Explain the Konigsberg’s Seven Bridge Problem. 4
6. If a graph with n vertices and m edges is k-regular, show that m = kn / 2. 4
Does there exist a cubic graph with 15 vertices?
7.Define, with one example for each: Trees, Rooted Binary Trees, Optimal 5
Trees, Balanced Trees, Prefix Codes, Spanning Trees, Minimal Spanning
Trees, Complete Binary Trees.
8. Obtain the optimal prefix codes for the following messages: 5
i) ROAD IS GOOD ii) FALL OF THE WALL. Indicate the codes.