Algorithmique et structure de données 1
مخطط الموضوع
-
-
-
This opening session welcomes first-year students to computer science and sets up the semester. It introduces first-year students to computer science: what it is, why it matters, and how a computer system works, from hardware to software. It then places Algorithms & Data Structures within the field and covers the course structure, grading and what's expected of students.
-
Week 1 introduces problem solving as a basic skill, then shows how computer science approaches it with algorithms. It covers what an algorithm is and how to write one as pseudocode, a flowchart or code. Students practice analyzing, modeling and solving problems with puzzles, and the lecture ends with how computers store data in binary.
-
This week covers how an algorithm is structured and how to write a complete one in pseudocode. Students learn how to declare variables, constants and types, and how to use assignment and input/output. They practice by writing short algorithms of their own.
-
This part of the course is focusing specifically on transitioning from algorithms to C programming. It introduces core language fundamentals, including C identifiers, basic data types and type modifiers, constants and variables, operators and expression evaluation, and basic input/output operations (printf, and scanf)
-
This session explains how programs make decisions. It starts with a short history of control flow: plain sequencing, GOTO and the tangled code it produced, then structured programming and its three basic structures (sequence, selection, iteration). The main part covers selection: if, if/else, the else if ladder, switch and the ternary operator. Examples are given in pseudocode, C and Python. Students then work with Boolean expressions, relational and logical operators, and truth tables, and compare nested ifs with combined conditions. The course part ends with common C pitfalls: = vs ==, the dangling else, the stray semicolon, chained comparisons and lazy evaluation.
-
Week 5 covers Flow Control, continuing structured programming with a deep dive into For loops in pseudocode and C.
-
The week covers iteration with While and Repeat loops: basics, Problem solving with loops with examples like primality tests, divisor searches, and a geometric method for approximating square roots, digit manipulation with MOD and DIV, ...
The course section ends with nested loops and general examples.
-