Professional Documents
Culture Documents
Vision
Sri Krishna College of Technology aspires to be recognized as one of the
pioneers in imparting world class technical education through Technology
enabled Innovative Teaching Learning Processes with a focus on research
activities to cater the societal needs.
Mission
1. To be recognized as centre of excellence in science, engineering and
technology through effective teaching and learning processes by providing
a conducive learning environment
2. To foster research and development with creative and entrepreneurial
skills by means of innovative applications of technology
3. Accomplish expectations of the society and industry by nurturing the
students to be competent professionals with integrity
2
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Vision
The department of CSE fosters a conducive ambience to meet the global
standards by equipping the students with modern techniques in the area
of Computer Science and relevant research to address the societal needs.
Mission
1.To provide quality academic environment that would help the students
to acquire knowledge in computer science concepts.
2.To motivate faculty to disseminate knowledge to different levels.
3.To produce competent graduates who can develop algorithms and
systems to the target groups.
3
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
4
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
5
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Module 1 6
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
7
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
8
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
9
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Course Contents
Module 1 10
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Text Books
Reference Books
1. Herbert Schildt, “The Complete Reference C”, 4th edition ,TMH,2015.
2. S.ThamaraiSelvi and R.Murugesan, “Test your skills in C”, 6E, TMH, 2012.
3. K.R.Venugopal and SudeepR.Prasad , “Mastering C”, TMH ,Second edition , 2015
4. YashwantKanetkar, “Let us C”, 12th Edition, BPB Publications, 2014
5. B Stephen G. Kochan “Programming in C”,Fourthedition, Addison Wesley publishing,2014.
6. Behrouz A. Forouzan& Richard F. Gilberg, “A Structured Programming Approach Using C”,
3E, Cengage Learning, 2008
7. E Balagurusamy, “Programming in ANSI C”, 6E, TMH, 2012.,”Computer System
Architecture”,3rdEdition, Pearson Education, 2007
8. Yashavant Kanetkar, “Understanding Pointer in C”, 3E, BPB Publication, 2011.
11
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Web References:
1. https://www.codeguru.com/
2. http://raptor.martincarlisle.com/
3. https://scratch.mit.edu/
4. https://www.tutorialspoint.com/cprogramming/cprogramming_tutorial.pdf
5. http://students.iitk.ac.in/programmingclub/course/#notes
Assessment Methods & Levels (based on Blooms’ Taxonomy)
Summative assessment based on Continuous and End Semester Examination
Continuous Assessment End
Theory Practical Semester
Bloom’s Level Term End Rubric Examination
CIA1 CIA2
Assessment based CIA (Theory)
[6 marks] [6 marks]
[8 marks] [40 Marks] [40 marks]
Remember 30 30 20 - 20
Understand 40 30 30 30 30
Apply 30 40 50 70 50
Analyse - - - - -
Evaluate - - - - -
Create - - - - -
12
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Module 1
Problem Solving Techniques
Module 1 13
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Module 1
Session 1 : General problem Solving concepts-: Algorithm
Session 2 :
General problem Solving concepts-: Pseudo-code and
Flowchart
Module 1 Session 1 14
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Session 1
General problem Solving concepts-:
Algorithm
Module 1 Session 1 15
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
Module 1 Session 1 16
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Problem Solving
Outline Outline In Everyday Life
Module 1 Session 1 17
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
18
Module 1 Session 1 18
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline
Problem Solving-
Outline
SIX Steps
1. Identify the problem.
2. Understand the problem.
3. Identify alternative ways to solve the problem.
4. Select the best way to solve the problem from the list of
alternative solutions.
5. List instructions that enable you to solve the problem using
the selected solution.
6. Evaluate the solution.
Module 1 Session 1 19
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
Module 1 Session 1 20
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline ProblemOutline
Statement
Module 1 Session 1 21
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
TYPES OF PROBLEM SOLUTIONS
Algorithmic
solutions Heuristic
solutions
Module 1 Session 1 22
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
• Problems
Outline do not always have straightforward solutions.
Outline
Algorithmic solutions
• Some problems can be solved with a series of actions.
• Once the alternatives have been eliminated, the solution can
be reached by completing the actions in steps
Heuristic solutions
• The solutions of other problems are not so straightforward.
• These solutions require reasoning built on knowledge and
experience, and a process of trial and error.
Module 1 Session 1 23
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
Module 1 Session 1 24
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
PROBLEM
Outline SOLVING WITH COMPUTERS
Outline
Module 1 Session 1 25
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
DIFFICULTIES
Outline WITH
OutlinePROBLEM SOLVING
Module 1 Session 1 26
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
PROGRAMMING PHASE
Implementation Phase
Programming language
Module 1 Session 1 27
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
ALGORITHM
Module 1 Session 1 28
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Module 1 Session 1 29
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
Module 1 Session 1 30
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline ALGORITHM
Outline
Module 1 Session 1 31
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
Module 1 Session 1 32
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
• An algorithm is definedOutline
Outline as a step-by-step procedure or
method for solving a problem by a computer in a finite
number of steps.
Module 1 Session 1 33
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Let’s
Outline try
Module 1 Session 1 34
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
The taxi algorithm
• Go to the taxi stand.
• Get in a taxi.
• Give the driver- address
Module 1 Session 1 35
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Characteristics
Outline Outline of Algorithm
Module 1 Session 1 36
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Factors
Outline AffectingOutline
Quality of Algorithm
Module 1 Session 1 37
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline
Formal Way
Outline
1. Input
2. Output
3. Definiteness
4. Effectiveness
5. Termination
Module 1 Session 1 38
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Algorithm:
Outline Calling a friend on the telephone
Outline
Input: The telephone number of your friend.
Output: None
Steps:
1. Pick up the phone and listen for a dial tone
2. Press each digit of the phone number on the phone
3. If busy, hang up phone, wait 5 minutes, jump to step 2
4. If no one answers, leave a message then hang up
5. If no answering machine, hang up and wait 2 hours, then
jump to step 2
6. Talk to friend
7. Hang up phone
Module 1 Session 1 39
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Algorithm
Outline to findOutline
out number is odd or
even
Step 1 : start
step 2 : input number
step 3 : rem=number mod 2
step 4 : if rem=0 then
print "number even"
else
print "number odd"
endif
step 5 : stop
Module 1 Session 1 40
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Problems
Outline
Module 1 Session 1 41
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline ADVANTAGES
Outline
Module 1 Session 1 42
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline DISADVANTAGE
Outline
Module 1 Session 1 43
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
Module 1 Session 1 44
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Module 1 Session 1 45
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline KeyOutline
Terms
• Problem solving
• Algorithmic solutions
• Heuristic Solutions
• Programming Phase
• Factors
Module 1 Session 1 46
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
• Stages of Algorithm
Module 1 Session 1 47
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
Module 1 Session 1 48
18CS101 – C PROGRAMMING FOR PROBLEM SOLVING
Outline Outline
Module 1 Session 1 49