Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Department of CS and IT
LA is a linear array with lower bound LB and upper bound UB. This algorithm traverses LA applying and
operation PROCESS to each element of LA.
Step6: Exit.
CSC 2051/ CSC 2051
Data Structures
LAB SESSION 3
2
CSC 2051/ CSC 2051
Data Structures
LAB SESSION 3
Step 6: Exit
7. EXIT
Exercise:
1. Implement the above algorithms in java/python Language. Use proper indentation and comments in
your code.
2. Test your programs with different values and show the output.
Program : Traversing
Input string Expected output Actual Output
Student
Jinnah University
3
CSC 2051/ CSC 2051
Data Structures
LAB SESSION 3
3. Test Run with trace.