PROBLEM SOLVING TECHNIQUES
By
Dept. of CSE
PVPSIT, Kanuru.
PRASAD V. POTLURI SIDDHARTHA INSTITUTE OF TECHNOLOGY
Dept of CSE
2025-26
Array Counting or Histogramming
PVPSIT (Autonomous)
Problem Solving Techniques
while less than n marks have been examined do
Dept of CSE, PVPSIT
2025 - 26
PVPSIT (Autonomous)
Problem Solving Techniques
Dept of CSE, PVPSIT
2025 - 26
PVPSIT (Autonomous)
Problem Solving Techniques
Dept of CSE, PVPSIT
2025 - 26
PVPSIT (Autonomous)
Problem Solving Techniques
Dept of CSE, PVPSIT
2025 - 26
PVPSIT (Autonomous)
Problem Solving Techniques
for i:= 1 to n do
begin
read m
a[m] := a[m]+1
end
for i:= 0 to 100 do
begin
write a[i]
end
Dept of CSE, PVPSIT
2025 - 26
PVPSIT (Autonomous)
Problem Solving Techniques
(a) read next mark m.
(b) add one to the count in location m in the counting array.
4. Write out the marks frequency count distribution.
Dept of CSE, PVPSIT
2025 - 26
Algorithm description
PVPSIT (Autonomous)
Problem Solving Techniques
Dept of CSE, PVPSIT
2025 - 26
Algorithm:
PVPSIT (Autonomous)
Problem Solving Techniques
Dept of CSE, PVPSIT
2025 - 26
Notes on design
PVPSIT (Autonomous)
Problem Solving Techniques
4.2.1 modify the algorithm above so that a histogram is obtained only for each ten percentile range (e.g. 0->10%, 11->20%, …) rather than for each individual mark.
Dept of CSE, PVPSIT
2025 - 26
Supplementary problems
PVPSIT (Autonomous)
Problem Solving Techniques