Chapter 4 The course in research context

Course Description

A closer look at the Design and Analysis of Algorithms course: what students study, how the course and lab are delivered, and why it offers a meaningful setting for this research.

Read the chapter

Research setting Design and analysis of algorithms

The course in research context

The Design and Analysis of Algorithms (DAA) is a core computer science course that discusses data organization, storage, processing and related operations along with algorithms that optimize these operations with respect to space and time. The course emphasizes algorithmic thinking to solve problems. The course strengthens the fundamentals of designing and implementing systems and their components that connect to the advanced courses in the later semesters and real-world professional applications once they graduate. It guides students to build from the theories, present different design techniques, strategize solutions with several procedures and optimizations, and apply them to solve real-world problems. The characteristic of the course, which supports the activation of prior knowledge to comprehend new information related to the problem, makes it a good fit for Problem-Based Learning (Schmidt et al., 2011).

4.1 Course details

Course Details

In the context of this research, Design and Analysis of Algorithms (DAA) is a core course offered to second-year undergraduate computer science students usually at most universities. The course includes a laboratory component titled "Algorithms Lab" where students gain hands-on experience implementing and analyzing data structures and algorithms through practical problem-solving. The course and lab together comprise a total of six credits. The course engages the students with authentic and open-ended problems. Rather than memorizing answers, students try different approaches, explain why they work, and use what they have learned in real, meaningful situations. The objective of the DAA course and laboratory is to prepare students to select the right data structures and algorithms for different problems, write optimized code, and understand the principles behind design, analysis and performance (Cormen et al., 2022).

The course syllabus of 50 hours is presented in Table 4.1 below.

Table 4.1 DAA Course Syllabus
ClustersHours
Cluster 1: Foundations Design Philosophy and Intuitions, Space and Time Complexities, Order of an Algorithm, Problem Patterns: Recursion, Iteration, Backtracking06
Cluster 2: Computing Principles and Tools Pruning, Edge Relaxation, Sets, Traversals, Prefix and Suffix, Union-Find, Hashing and Other Principles04
Cluster 3: Structured Data Management Graphs and Trees, Tries, AVL Trees, 2-3 Trees, Red-Black Trees, DFS, BFS, Heap, Array Query, Spare Table, Segment Trees, Fenwick Trees, Skip Lists10
Cluster 4: Sorting and Searching Sorting and Searching Devices08
Cluster 5: Graph Algorithms Shortest Path and Spanning Trees12
Cluster 6: Problem Assortments Problem types, Undecidability, Limitations of Algorithm Power10

The 50-hour syllabus is divided into six different clusters. The course begins by instilling design philosophies and algorithmic intuitions, introducing students to essential concepts like space and time complexities, the order of an algorithm, and problem patterns. It establishes the mind-set required to analyze and optimize computational solutions, covering recursion, iteration, and backtracking, the three fundamental techniques for solving complex problems efficiently.

The DAA course places all the core principles in a separate second chapter, bringing together around 20 key principles in one place. This chapter gives students a big-picture understanding before they dive into specific techniques and problems. Earlier, these principles were taught along with related topics, making students see them as background knowledge for that particular problem. When students learn each one as a standalone principle, they grasp its significance better and know how to apply it across various related contexts. This part of the course introduces helpful ideas like pruning, edge relaxation, set operations, tree traversals, prefix/suffix methods, union-find, and hashing, etc. tools that help students to understand problem scenarios more effectively.

Cluster three is about structured data management, mainly consisting of trees and graphs, the backbone of many computational problems. They explore graphs, tries, balanced trees (AVL, 2-3 Trees, Red-Black Trees), traversal algorithms (DFS, BFS), and data structures for efficient query processing like heaps, sparse tables, segment trees, Fenwick trees, and skip lists. This cluster emphasizes the importance of structured data representation and efficient access mechanisms.

In cluster four, students learn sorting and searching algorithms, the building blocks of many computational tasks. They explore various sorting devices and searching techniques to understand efficiency trade-offs and real-world applications better. The course covers sorting and efficiency analysis for Bubble, Selection, Insertion, Merge, Quick, and Heap. It explores searching techniques: Brute Force String Search, Rabin-Karp, Boyer-Moore, and Knuth-Morris-Pratt.

Graph algorithms are central to modern computational problems, and Cluster Five focuses on shortest path algorithms and spanning tree algorithms. This cluster includes Dijkstra's, Bellman-Ford, Floyd, Warshall, Prim's, and Kruskal's algorithms. Students learn how these algorithms work, compare their efficiency with respect to using different data structures, and understand where to apply them. Graph computation models are Turing-complete (Copeland & Sylvan, 1999). Using nodes and edges, graphs help analyze connections and relationships within complex data.

The final segment discusses various problem types, limitations of algorithmic power, and undecidability, pushing students to explore the boundaries of computational feasibility. This section covers an assortment of problems like Strassen’s matrix multiplication, Huffman encoding, Fake-Coin problem, Travelling Sales Person problem, etc. It also deals with undecidability and all the related concepts like lower bound arguments, Halting problem, Cantor's Diagonalisation etc.

The two credit lab component is presented in Table 4.2 below.

Table 4.2 Algorithms Lab Slots
Si. No.Title of the SlotNumber of Slots
1Revision of Data Structures1
2Efficiency Analysis1
3Structured Data Management3
4Searching and Sorting2
5Graph Algorithms3
6Project Work3

Each lab slot is of three hours and students are evaluated in all the lab slots. The lab slots comprise of exercise problems, structured inquiry (Bunterm et al., 2014) and project work. Students get a hand-on experience of the studies concepts in the lab sessions applying solving ill-structured and semi-structured application problems.

By nature, the course is majorly about problem solving (Simon & Newell, 1971), needs analytical thinking (Amer, 2005) and critical thinking (Lai, 2011) where students need to apply mathematical reasoning, and implement efficient algorithms. It balances theory with practical applications, covering both classical and modern data structures. By the end of the course, students will have the skills to analyze, design, and optimize algorithms for a wide range of computational problems.

How the course is characterised

The course can be characterized as follows:

  • The course has theoretical foundations, principles, design techniques that extend beyond one semester scope and has correlation to other course in the same or higher semesters
  • While rooted in theory, the course emphasizes practical applications in solving real-world problems
  • The course typically follows a hierarchical structure, starting with fundamentals and progressing to more advanced topics
  • Problem-solving is central to the course, with an emphasis on thinking and design strategies
  • The course provides a platform for critical thinking and analytical skills to evaluate and compare different tools and techniques, assess their strengths and weaknesses, and select appropriate solutions based on problem constraints
  • Given the depth and complexity of the subject matter, the course often requires students to engage in self-directed learning, including independent study, research, and exploration of additional resources to deepen their understanding of advanced topics.
  • The course promotes self-directed learning, transfer of knowledge and life-long learning

Course learning outcomes

The course learning outcomes are:

  • Theorize and reflect on the properties, operations and applications of Design and Analysis of Algorithms using application case studies.
  • Analyse, interpret and compare various array queries, sorting, searching, and graph algorithms and perform efficiency analysis.
  • Explain causes and analyze the role of data structures in structuring and manipulating data for problem-solving and evaluate on their time and space efficiency.
  • Apply algorithmic problem-solving techniques by understanding the theoretical foundations in solving a problem scenario

Textbooks and reference books

The course uses the following textbooks, reference books, and coding platforms:

  • Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein, Introduction to Algorithms, Fourth Edition, The MIT Press, 2022.
  • Anany V. Levitin, Introduction to the Design and Analysis of Algorithms. Addison-Wesley Longman Publishing Co, 2012.
  • Hemant Jain, Problem Solving Using Data and Algorithms Using C, Taran Technologies Private Limited, 2016.
  • Online Coding Platforms: HackerRank / CodeChef / SPOJ

4.2 Literature survey

Literature Survey

Researchers and educators investigated the teaching and learning of data structures and algorithms through a wide range of pedagogical innovations, classroom experiments, and theoretical perspectives. The course remained a cornerstone of computer science education because it built upon programming fundamentals and introduced students to computational reasoning and problem-solving strategies. Traditional textbooks presented the subject sequentially, starting with arrays and linked lists and moving toward stacks, queues, trees, and graphs, before addressing design techniques, algorithmic efficiency, and real-world applications, often supported with pseudocode and end-of-chapter exercises (Aho et al., 1983). However, the abstract and conceptually demanding nature of the subject often made it difficult for students to master, leading researchers to develop new approaches that promoted conceptual clarity, active learning, and inclusive engagement.

Visualization and multimedia learning significantly improved students’ understanding of complex algorithms. The use of animated explanations made lessons more interactive and engaging, helping students visualize dynamic processes and understand how algorithms operate step by step. Over several years, learners demonstrated stronger performance on problems that required applying conceptual knowledge when instruction incorporated animated algorithm demonstrations (Junaidu, 2008). Hall et al. (2013) evaluated interactive online tutorials and exercises for sorting and hashing. Students responded positively to the materials, while the treatment group’s post-test scores were only slightly higher than the control group’s and the difference was not statistically significant.

Visualization proved valuable as a supplement and also as a central pedagogical tool. Developing visualized algorithm models using educational software improved student comprehension, self-efficacy, and metacognitive skills by connecting conceptual reasoning with visual intuition (Psycharis et al., 2018). Kheder and Varol (2024) examined how algorithm visualizations can contribute to students’ learning skills. Their study adds to work on using visual representations to make algorithm behavior available for inspection and discussion. The impact of algorithmic systems also extended beyond visualization. In online courses, algorithms that captured learner data, filtered resources, and predicted behavior influenced pedagogy itself, forming an algorithmic culture that reshaped how learning was delivered and understood (Knox, 2018).

Efforts to improve instructional materials extended to course design and organization. Yusupov et al. (2019) examined ways to improve a data structures and algorithms course through greater structuration and integration of its content. Their work supports attention to course organization, but the source does not establish the specific sorting-related learning gains described in some accounts. Silva et al. (2019) reviewed recent studies on teaching programming and data structures and organized the work around course content, pedagogical strategies, and support tools.

Assessment and evaluation practices evolved alongside pedagogical change. Peer assessment encouraged analytical and critical thinking by allowing students to evaluate complex problems. Learners who participated in structured peer review activities demonstrated stronger assessment quality and higher course performance, with an emphasis on identifying conceptual rather than procedural errors (Chinn, 2005). Active learning methods such as Think-Pair-Share improved engagement and learning outcomes by providing opportunities for discussion, reflection, and collaborative problem-solving. Students achieved higher post-test scores and exhibited improved motivation, behavior, and cognitive involvement compared to those taught through traditional lectures (Reddy et al., 2015).

Continuous assessment systems also transformed motivation and performance. García-Mateos and Fernández-Alemán (2009) describe the use of online judging to support practice and assessment in an algorithms and data structures course. Barczak et al. (2023) describe an automated assessment system embedded in DSA coursework. Student experiences in their case study suggest that the automarker supported practice-based learning and formative feedback.

Educators sought to clarify the broader purposes of teaching data structures and algorithms. Research identified several distinct pedagogical goals, including developing transferable problem-solving skills, improving programming competence, deepening understanding of algorithmic mechanisms, and encouraging modular and component-based thinking (Lister et al., 2004). Large-scale surveys of undergraduate algorithms courses revealed significant variation in how topics were taught, assessed, and sequenced, highlighting a need for better alignment and shared standards to ensure consistent quality in instruction (Luu et al., 2023).

Project-based and collaborative learning approaches connected theoretical understanding with practical application. Competitive programming assignments motivated students by allowing them to refine their code iteratively and compete against instructor and peer solutions, leading to stronger engagement and better performance (Lawrence, 2004). Collaborative, flipped, and blended models were also used to great effect. In one such approach, students from multiple countries worked in peer-led seminars where they solved data structures problems together while being guided by a tutor. This model encouraged ownership of learning, deep discussions, and improved outcomes in subsequent assessments (Nazir et al., 2019). Teaching algorithms through real-world computer graphics projects such as surface reconstruction provided another successful context for bridging theory and practice. Students gained insight into algorithm implementation, modular programming, and the iterative refinement process, demonstrating strong comprehension and engagement (Duchowski & Davis, 2007).

Learning theories provided additional insight into how understanding developed over time. Cognitive development theory helped explain how learners moved from intuitive understanding to formalized reasoning about algorithms, particularly through stages that reflected conceptual, relational, and abstract knowledge construction (da Rosa, 2015). Hubbard’s (2018) review of pedagogical content knowledge in computing education highlights the importance of examining how teachers’ subject knowledge and pedagogical decisions shape computing instruction. Other research on secondary computer science teachers revealed that some educators viewed algorithms as abstract cognitive objects, while others combined conceptual understanding with implementation tasks, emphasizing the importance of class discussions in promoting reflection and higher-order thinking (Nijenhuis-Voogt et al., 2023).

The emphasis on inclusion and cultural relevance added new dimensions to the teaching of data structures and algorithms. Integrating culturally responsive pedagogy into computer science classrooms enabled students to connect their experiences with abstract computational concepts. Examples that used DJing and Black music as teaching contexts for data structures helped underrepresented students engage more deeply with course material and develop confidence in their learning (James, 2020). The exploration of computing education in historically Black colleges and universities revealed the potential of culturally sustaining pedagogy to strengthen data structures instruction and make it more relevant for diverse learners (Smarr & Gilbert, 2023). Broader computational-thinking scholarship also considers how computational ideas can be used across subject areas and domains (Grover & Pea, 2013). This supports the relevance of cross-context examples, without treating that literature as evidence of outcomes for non-computer-science majors.

Technological advancement continued to reshape the teaching and learning of data structures and algorithms. In a scientific-computing course, students reported using ChatGPT for error checking and debugging, code explanation, conceptual support, and code generation. The instructor also raised concerns about code quality and student learning, and both students and the instructor perceived challenges for pair programming (Groothuijsen et al., 2024). The growing capacity of AI and automated code-writing systems called for a rethinking of pedagogy and assessment. With automation now capable of performing many of the tasks traditionally required in programming education, researchers proposed frameworks for adapting teaching methods to preserve the relevance of human creativity and reasoning in computing education (Raman & Kumar, 2022).

Despite numerous pedagogical innovations, many challenges persisted. Data structures remained a high-cognitive-load subject, often associated with high failure and dropout rates. Reviews of research literature identified several factors contributing to student difficulty, including the intrinsic complexity of the material, the instructional methods used, and the diversity of learners’ prior knowledge and motivation. The findings reinforced the need for flexible and innovative strategies that reduce cognitive load and enhance motivation (Mtaho & Mselle, 2024). Systematic reviews of research on algorithm design education identified limited empirical studies and a lack of methodological rigor. Only a small fraction of studies employed controlled experiments or robust statistical testing, which suggested a need for deeper and more disciplined research into how algorithmic thinking should be taught (Liu et al., 2025).

Curriculum research in related areas also provided useful insight. Programming courses for non-computer science majors faced difficulties in transitioning from procedural to object-oriented paradigms, and the use of pseudo-languages proved helpful for easing this conceptual shift. Surveys of student feedback highlighted the importance of clear sequencing, contextual examples, and incremental complexity in programming instruction (Xinogalos, 2016). Lawsky (2020) discusses algorithmic methods and generated practice problems in tax education. This is an example of structured problem-solving in a different discipline, rather than evidence about programming students.

These studies describe different uses of online judging, interactive tutorials, and automated assessment in programming education. Hall et al. (2013) reported positive student responses to OpenDSA materials but no statistically significant post-test advantage in their pilot comparison. Barczak et al. (2023) examined an automarker as part of formative DSA coursework. The findings support the use of feedback and practice tools as instructional supports, while their reported outcomes remain specific to each study.

Studies of graphics-based projects, peer-led problem solving, and competitive programming illustrate different ways to connect algorithmic concepts with application (Duchowski & Davis, 2007; Nazir et al., 2019; Lawrence, 2004). These works offer examples of instructional designs; they do not all measure retention or later performance in advanced courses.

Through the combination of theoretical grounding and practical innovation, educators developed a clearer understanding of how students learned data structures and algorithms. Visualization transformed abstract content into tangible experience. Automated assessment and continuous feedback systems nurtured self-directed learning and reflection. Collaborative and project-based methods built problem-solving competence and motivation. Culturally grounded and inclusive pedagogy expanded the relevance of computing education to all learners. The introduction of artificial intelligence created both opportunities and challenges, prompting educators to reconsider the role of human reasoning and judgment in programming education.

This survey of literature on algorithms course revealed that the course is in continuous evolution. What began as a linear, textbook-centred discipline developed into a rich and multidimensional area of research and practice. Over time, visualization, automation, inclusion, and artificial intelligence redefined how algorithms and data structures were taught and learned. The collective evidence showed that when pedagogical innovation was grounded in research, data structures and algorithms could become accessible, engaging and transformative in preparing students for the complex, automated, and interconnected world of modern computing.