Algorithms and Problem Solving
تعلّم كيف تفهم المسألة وتختار لها الأسلوب المناسب وتكتب حلها بلغة Java، ثم تثبت أنه صحيح وتعرف تكلفته عندما يكبر حجم البيانات: من الترتيب والبحث الثنائي إلى البرمجة الديناميكية وأقصر المسارات.
- 157درس
- 15أقسام
- 91اختبارات
- 06:04ساعة
- متوسطالمستوى
تعرّف على الدورة
تخيّل أنك تبحث عن طلب واحد بين مليون طلب. إذا فحصت الطلبات واحدًا تلو الآخر فقد تحتاج إلى مليون خطوة، أما إذا كانت مرتبة فيكفيك نحو عشرين خطوة. هذا هو الفرق الذي تصنعه الخوارزمية المناسبة. في كورس الخوارزميات وحل المشكلات بالعربي تتعلّم كيف تفهم المسألة، وتختار طريقة حلها، وتتأكد من صحتها، وتعرف كيف تتصرف عندما يكبر حجم البيانات.
تبني الدورة على ما تعلّمته في دورات هياكل البيانات: تستخدم Arrays وHash Maps وStacks وQueues وPriority Queues وGraphs أثناء حل مسائل حقيقية، مثل كشف تعارض الحجوزات، واختيار أكبر عدد من الأنشطة، وترتيب المهام المعتمدة على بعضها، وإيجاد أقصر طريق بأقل تكلفة.
كل درس فيديو قصير مع كود Java تشغّله بنفسك، ثم مختصر كتابي وإنفوجرافيك واختبار قصير، ومساعد ذكي ومحرر كود داخل كل درس.
لماذا تحتاج إلى تعلّم الخوارزميات وحل المشكلات؟
لأن كتابة كود يعمل على مثال صغير لا تكفي. المطلوب أن تعرف هل يعطي الحل الإجابة الصحيحة في كل الحالات المسموحة (Correctness)، وكم يحتاج من وقت وذاكرة عندما يكبر الإدخال (Time & Space Complexity). هذه الطريقة في التفكير هي ما تختبره مقابلات العمل التقنية، وما تحتاجه كل يوم عندما يصبح الحل المباشر بطيئًا.
لماذا يجب أن تشترك في هذه الدورة؟
- طريقة ثابتة لحل أي مسألة: المدخلات والمخرجات والقيود، ثم مثال يدوي، ثم حل مباشر، ثم تحسين.
- أكثر من 15 أسلوبًا تتعلّمها بالتطبيق: Recursion وSorting وBinary Search وTwo Pointers وSliding Window وPrefix Sums وBacktracking وGreedy وDynamic Programming وBFS وDFS وDijkstra وBellman-Ford وFloyd-Warshall وTopological Sort.
- كل حل مكتوب بلغة Java مع تتبّع تنفيذه وحالاته الحدية.
- تبرير صحة الحل وحساب تكلفته في كل درس، لا حفظ الحلول.
- تحديات تجمع أكثر من فكرة، ومشروع تطبيقي على الاعتماديات ومسار التنفيذ الحرج.
- خريطة لاختيار الأسلوب المناسب من قيود المسألة، وخطة تدريب لما بعد الدورة.
- مختصر كتابي وإنفوجرافيك واختبار قصير بعد كل درس، واختبار لكل قسم، واختبار نهائي.
- مساعد ذكي ومحرر Java داخل كل درس، ومشرفون يجيبون عن أسئلتك في التعليقات.
- وصول مدى الحياة مع أي تحديثات، وشهادة إتمام يمكن التحقق منها.
هذه الدورة مناسبة لك إذا كنت:
- أنهيت دورات هياكل البيانات وتريد أن تستخدمها في حل المسائل.
- تكتب كودًا يعمل لكنك لا تعرف كيف تثبت صحته أو تحسّن سرعته.
- تستعد لمقابلات العمل التقنية ومسائل الخوارزميات.
- طالب علوم حاسب تريد شرحًا عمليًا بالعربية مع كود Java.
- مبرمج تريد طريقة منظمة تبدأ بها أي مسألة جديدة.
ماذا ستتعلم خطوة بخطوة؟
- خطوات حل أي مسألة: تحدد المدخلات والمخرجات والقيود، وتحل مثالًا يدويًا، وتكتب الحل المباشر وتحسب تكلفته.
- الاستدعاء الذاتي: تحل المسألة بالاعتماد على نسخة أصغر منها، وتتتبع الاستدعاءات، وتحسب القوى بسرعة.
- الترتيب والتقسيم والحل: تطبّق الترتيب بالإدراج والفقاعي والاختيار والدمج والسريع، وتختار بينها حسب الثبات والذاكرة وأسوأ حالة.
- البحث الثنائي بثقة: تضبط الحدود، وتجد أول وآخر ظهور ومكان الإدراج، وتبحث بحثًا ثنائيًا على الإجابة.
- المؤشران والنافذة المنزلقة: تقلل العمل المتكرر على المصفوفات والنصوص بأسلوبي Two Pointers وSliding Window.
- الحساب المسبق والتراجع والجشع: تستخدم المجاميع التراكمية ومصفوفة الفروق، وتولّد الاختيارات بالتراجع، وتعرف متى ينجح الاختيار الجشع.
- البرمجة الديناميكية: تحفظ نتائج المسائل الفرعية وتبني الجداول لحل صعود السلم والعملات وحقيبة الظهر وأطول تتابع مشترك.
- الرسوم البيانية وأقصر المسارات: تمثل العلاقات كرسم بياني، وتطبّق BFS وDFS واكتشاف الدورات والترتيب الطوبولوجي وDijkstra وBellman-Ford وFloyd-Warshall.
المتطلبات
- أساسيات البرمجة بلغة Java: المتغيرات والشروط والحلقات والدوال (Methods) والكائنات بمستوى أساسي.
- هياكل البيانات: Array وArrayList وStack وQueue وLinked List وTrees وHeap وPriority Queue وHash Map وHash Set.
- فكرة Big O وTime Complexity وSpace Complexity.
- متصفح فقط: نكتب الكود في محرر Java أونلاين دون تثبيت أي برنامج.
تشمل الدورة
- شهادة موثقة
- قياس مستوى التقدم والانجاز عبر الدورة
- إجابة من مشرفي الطلاب على كل الأسئلة
- فاعليات حصرية
- شارات تميز للطلبة المتقدمين
- اشعارات تذكير وتحفيز لإنهاء الدورة
- اشتراك مدى الحياة
دفع آمن ووصول فوري للدورة
ماذا ستتعلم خطوة بخطوة
اضغط على أي قسم لعرض دروسه. الدروس المجانية متاحة للمشاهدة قبل الاشتراك.
محتوى الدورة
- 1Course Introduction4 دروس يحتوي على دروس مجانية
- 2Problem-Solving Process10 دروس · 6 اختبارات يحتوي على دروس مجانية
- Problem Inputs Outputs and Constraints درس مجاني
- مختصر كتابي: Problem Inputs Outputs and Constraints درس مجاني
- اختبار قصير: Problem Inputs Outputs and Constraints
- Manual Walkthrough and Pseudocode درس مجاني
- مختصر كتابي: Manual Walkthrough and Pseudocode درس مجاني
- اختبار قصير: Manual Walkthrough and Pseudocode
- Brute Force and Bottleneck Analysis درس مجاني
- مختصر كتابي: Brute Force and Bottleneck Analysis درس مجاني
- اختبار قصير: Brute Force and Bottleneck Analysis
- Correctness and Test Cases
- مختصر كتابي: Correctness and Test Cases
- اختبار قصير: Correctness and Test Cases
- Counting Conflicting Pairs
- مختصر كتابي: Counting Conflicting Pairs
- اختبار قصير: Counting Conflicting Pairs
- اختبار: Problem-Solving Process
- 3Recursion10 دروس · 6 اختبارات
- Thinking in Smaller Subproblems
- مختصر كتابي: Thinking in Smaller Subproblems
- اختبار قصير: Thinking in Smaller Subproblems
- Base Case and Recursive Step
- مختصر كتابي: Base Case and Recursive Step
- اختبار قصير: Base Case and Recursive Step
- Call Stack and Returning from Calls
- مختصر كتابي: Call Stack and Returning from Calls
- اختبار قصير: Call Stack and Returning from Calls
- Recursion Complexity vs Iteration
- مختصر كتابي: Recursion Complexity vs Iteration
- اختبار قصير: Recursion Complexity vs Iteration
- Fast Exponentiation
- مختصر كتابي: Fast Exponentiation
- اختبار قصير: Fast Exponentiation
- اختبار: Recursion
- 4Sorting Algorithms and Divide and Conquer16 درسًا · 9 اختبارات
- Sorting Introduction and Insertion Sort
- مختصر كتابي: Sorting Introduction and Insertion Sort
- اختبار قصير: Sorting Introduction and Insertion Sort
- Bubble Sort and Early Termination
- مختصر كتابي: Bubble Sort and Early Termination
- اختبار قصير: Bubble Sort and Early Termination
- Selection Sort
- مختصر كتابي: Selection Sort
- اختبار قصير: Selection Sort
- Insertion vs Bubble vs Selection
- مختصر كتابي: Insertion vs Bubble vs Selection
- اختبار قصير: Insertion vs Bubble vs Selection
- Divide and Conquer and Merge Sort
- مختصر كتابي: Divide and Conquer and Merge Sort
- اختبار قصير: Divide and Conquer and Merge Sort
- Quick Sort Pivot and Partitioning
- مختصر كتابي: Quick Sort Pivot and Partitioning
- اختبار قصير: Quick Sort Pivot and Partitioning
- Sorting Stability Space and Worst Case
- مختصر كتابي: Sorting Stability Space and Worst Case
- اختبار قصير: Sorting Stability Space and Worst Case
- Sorting Records with Multiple Criteria
- مختصر كتابي: Sorting Records with Multiple Criteria
- اختبار قصير: Sorting Records with Multiple Criteria
- اختبار: Sorting Algorithms and Divide and Conquer
- 5Searching and Binary Search10 دروس · 6 اختبارات
- Linear Search and Search Space Reduction
- مختصر كتابي: Linear Search and Search Space Reduction
- اختبار قصير: Linear Search and Search Space Reduction
- Iterative Binary Search and Boundaries
- مختصر كتابي: Iterative Binary Search and Boundaries
- اختبار قصير: Iterative Binary Search and Boundaries
- First and Last Occurrence
- مختصر كتابي: First and Last Occurrence
- اختبار قصير: First and Last Occurrence
- Insertion Position Lower Bound and Upper Bound
- مختصر كتابي: Insertion Position Lower Bound and Upper Bound
- اختبار قصير: Insertion Position Lower Bound and Upper Bound
- Binary Search on the Answer
- مختصر كتابي: Binary Search on the Answer
- اختبار قصير: Binary Search on the Answer
- اختبار: Searching and Binary Search
- 6Two Pointers10 دروس · 6 اختبارات
- Two Pointer Patterns
- مختصر كتابي: Two Pointer Patterns
- اختبار قصير: Two Pointer Patterns
- Pair Sum in a Sorted Array
- مختصر كتابي: Pair Sum in a Sorted Array
- اختبار قصير: Pair Sum in a Sorted Array
- Same Direction Pointers and Removing Duplicates
- مختصر كتابي: Same Direction Pointers and Removing Duplicates
- اختبار قصير: Same Direction Pointers and Removing Duplicates
- Opposite Direction Pointers and Palindrome Checking
- مختصر كتابي: Opposite Direction Pointers and Palindrome Checking
- اختبار قصير: Opposite Direction Pointers and Palindrome Checking
- Two Pointer Challenges and Correctness
- مختصر كتابي: Two Pointer Challenges and Correctness
- اختبار قصير: Two Pointer Challenges and Correctness
- اختبار: Two Pointers
- 7Sliding Window10 دروس · 6 اختبارات
- From Recalculation to Window Updates
- مختصر كتابي: From Recalculation to Window Updates
- اختبار قصير: From Recalculation to Window Updates
- Fixed-Size Window and Maximum Subarray Sum
- مختصر كتابي: Fixed-Size Window and Maximum Subarray Sum
- اختبار قصير: Fixed-Size Window and Maximum Subarray Sum
- Variable-Size Window and Minimum-Length Subarray
- مختصر كتابي: Variable-Size Window and Minimum-Length Subarray
- اختبار قصير: Variable-Size Window and Minimum-Length Subarray
- Longest Substring Without Repeating Characters
- مختصر كتابي: Longest Substring Without Repeating Characters
- اختبار قصير: Longest Substring Without Repeating Characters
- Window Expansion and Shrinking Conditions
- مختصر كتابي: Window Expansion and Shrinking Conditions
- اختبار قصير: Window Expansion and Shrinking Conditions
- اختبار: Sliding Window
- 8Precomputation and Range Queries10 دروس · 6 اختبارات
- Precomputation Trade-offs
- مختصر كتابي: Precomputation Trade-offs
- اختبار قصير: Precomputation Trade-offs
- Prefix Sums and Range-Sum Queries
- مختصر كتابي: Prefix Sums and Range-Sum Queries
- اختبار قصير: Prefix Sums and Range-Sum Queries
- Two-Dimensional Prefix Sums
- مختصر كتابي: Two-Dimensional Prefix Sums
- اختبار قصير: Two-Dimensional Prefix Sums
- Difference Arrays and Range Updates
- مختصر كتابي: Difference Arrays and Range Updates
- اختبار قصير: Difference Arrays and Range Updates
- Range Updates and Queries Challenge
- مختصر كتابي: Range Updates and Queries Challenge
- اختبار قصير: Range Updates and Queries Challenge
- اختبار: Precomputation and Range Queries
- 9Backtracking10 دروس · 6 اختبارات
- Choose, Explore, and Undo
- مختصر كتابي: Choose, Explore, and Undo
- اختبار قصير: Choose, Explore, and Undo
- Generating Subsets
- مختصر كتابي: Generating Subsets
- اختبار قصير: Generating Subsets
- Generating Permutations
- مختصر كتابي: Generating Permutations
- اختبار قصير: Generating Permutations
- Pruning Invalid Paths
- مختصر كتابي: Pruning Invalid Paths
- اختبار قصير: Pruning Invalid Paths
- N-Queens
- مختصر كتابي: N-Queens
- اختبار قصير: N-Queens
- اختبار: Backtracking
- 10Greedy Algorithms10 دروس · 6 اختبارات
- Greedy Choices and Counterexamples
- مختصر كتابي: Greedy Choices and Counterexamples
- اختبار قصير: Greedy Choices and Counterexamples
- Activity Selection
- مختصر كتابي: Activity Selection
- اختبار قصير: Activity Selection
- Detecting Booking Conflicts After Sorting
- مختصر كتابي: Detecting Booking Conflicts After Sorting
- اختبار قصير: Detecting Booking Conflicts After Sorting
- Minimum Meeting Rooms with a Priority Queue
- مختصر كتابي: Minimum Meeting Rooms with a Priority Queue
- اختبار قصير: Minimum Meeting Rooms with a Priority Queue
- Greedy Correctness and Practice
- مختصر كتابي: Greedy Correctness and Practice
- اختبار قصير: Greedy Correctness and Practice
- اختبار: Greedy Algorithms
- 11Dynamic Programming16 درسًا · 9 اختبارات
- Overlapping Subproblems
- مختصر كتابي: Overlapping Subproblems
- اختبار قصير: Overlapping Subproblems
- Memoization
- مختصر كتابي: Memoization
- اختبار قصير: Memoization
- Tabulation
- مختصر كتابي: Tabulation
- اختبار قصير: Tabulation
- Climbing Stairs
- مختصر كتابي: Climbing Stairs
- اختبار قصير: Climbing Stairs
- Minimum Coin Change
- مختصر كتابي: Minimum Coin Change
- اختبار قصير: Minimum Coin Change
- 0/1 Knapsack
- مختصر كتابي: 0/1 Knapsack
- اختبار قصير: 0/1 Knapsack
- Longest Common Subsequence
- مختصر كتابي: Longest Common Subsequence
- اختبار قصير: Longest Common Subsequence
- Space Optimization and Solution Reconstruction
- مختصر كتابي: Space Optimization and Solution Reconstruction
- اختبار قصير: Space Optimization and Solution Reconstruction
- اختبار: Dynamic Programming
- 12Graph Algorithms12 درسًا · 7 اختبارات
- Graph Modeling and Representation
- مختصر كتابي: Graph Modeling and Representation
- اختبار قصير: Graph Modeling and Representation
- Graph BFS and Visited Tracking
- مختصر كتابي: Graph BFS and Visited Tracking
- اختبار قصير: Graph BFS and Visited Tracking
- Graph DFS and Connected Components
- مختصر كتابي: Graph DFS and Connected Components
- اختبار قصير: Graph DFS and Connected Components
- Cycle Detection in Undirected Graphs
- مختصر كتابي: Cycle Detection in Undirected Graphs
- اختبار قصير: Cycle Detection in Undirected Graphs
- Cycle Detection in Directed Graphs
- مختصر كتابي: Cycle Detection in Directed Graphs
- اختبار قصير: Cycle Detection in Directed Graphs
- Topological Sorting
- مختصر كتابي: Topological Sorting
- اختبار قصير: Topological Sorting
- اختبار: Graph Algorithms
- 13Shortest Paths12 درسًا · 7 اختبارات
- Unweighted Shortest Paths with BFS
- مختصر كتابي: Unweighted Shortest Paths with BFS
- اختبار قصير: Unweighted Shortest Paths with BFS
- Dijkstra and Relaxation
- مختصر كتابي: Dijkstra and Relaxation
- اختبار قصير: Dijkstra and Relaxation
- Dijkstra with a Priority Queue
- مختصر كتابي: Dijkstra with a Priority Queue
- اختبار قصير: Dijkstra with a Priority Queue
- Path Reconstruction
- مختصر كتابي: Path Reconstruction
- اختبار قصير: Path Reconstruction
- Negative Weights and Bellman–Ford
- مختصر كتابي: Negative Weights and Bellman–Ford
- اختبار قصير: Negative Weights and Bellman–Ford
- All-Pairs Shortest Paths with Floyd–Warshall
- مختصر كتابي: All-Pairs Shortest Paths with Floyd–Warshall
- اختبار قصير: All-Pairs Shortest Paths with Floyd–Warshall
- اختبار: Shortest Paths
- 14Mixed Algorithm Challenges10 دروس · 6 اختبارات
- Choosing an Approach from Constraints
- مختصر كتابي: Choosing an Approach from Constraints
- اختبار قصير: Choosing an Approach from Constraints
- Sorting and Two Pointers Challenge
- مختصر كتابي: Sorting and Two Pointers Challenge
- اختبار قصير: Sorting and Two Pointers Challenge
- Sliding Windows, Prefix Sums, and Hash Maps
- مختصر كتابي: Sliding Windows, Prefix Sums, and Hash Maps
- اختبار قصير: Sliding Windows, Prefix Sums, and Hash Maps
- Backtracking vs. Greedy vs. Dynamic Programming
- مختصر كتابي: Backtracking vs. Greedy vs. Dynamic Programming
- اختبار قصير: Backtracking vs. Greedy vs. Dynamic Programming
- Dependency Planning and Critical Path Project
- مختصر كتابي: Dependency Planning and Critical Path Project
- اختبار قصير: Dependency Planning and Critical Path Project
- اختبار: Mixed Algorithm Challenges
- 15Course Wrap-Up and Next Steps7 دروس · 4 اختبارات
- Algorithm Selection Map
- مختصر كتابي: Algorithm Selection Map
- اختبار قصير: Algorithm Selection Map
- Explaining Correctness and Complexity
- مختصر كتابي: Explaining Correctness and Complexity
- اختبار قصير: Explaining Correctness and Complexity
- Practice Plan and Mistake Review
- مختصر كتابي: Practice Plan and Mistake Review
- اختبار قصير: Practice Plan and Mistake Review
- Course Outro and Further Learning
- اختبار: Course Wrap-Up and Next Steps
- الاختبار النهائي
- الاختبار النهائي
تعلّم على يد أحمد فتحي
أحمد فتحي Founder & CEO, Almdrasaمؤسس منصة المدرسة، ومهندس برمجيات رئيسي ومعماري سحابة ومدير، عمل مع شركات ناشئة مثل QbDVision وRewaaTech، ويحمل شهادتي AWS Architect وProfessional Scrum Master. يقدّم استشارات مهنية تساعد على تحويل تحديات العمل إلى خطوات عملية.
الأسئلة الشائعة
لمن أنهى أساسيات البرمجة وهياكل البيانات ويريد أن يتعلّم كيف يحل المسائل البرمجية بطريقة منظمة، سواء كان طالبًا أو مبرمجًا يستعد لمقابلات العمل التقنية.
أساسيات Java، وهياكل البيانات الأساسية مثل Arrays وStacks وQueues وTrees وHash Maps، وفكرة Big O. في بداية الدورة درس يراجع هذه المتطلبات مع أسئلة قصيرة تكشف لك ما يحتاج إلى مراجعة.
كل الأمثلة والحلول بلغة Java، والأفكار نفسها تصلح لأي لغة برمجة.
لا. نكتب الكود ونشغّله في محرر Java أونلاين من المتصفح، وفي كل درس محرر كود ومساعد ذكي داخل المنصة. ويمكنك استخدام بيئة التطوير على جهازك إذا كنت تفضّلها.
نعم، الدروس مسجلة وقصيرة، تشاهدها في أي وقت يناسبك، ويبقى وصولك إليها مدى الحياة مع أي تحديثات مستقبلية.
الشرح بالعربية باللهجة المصرية بأسلوب بسيط، مع المصطلحات التقنية بالإنجليزية كما تُستخدم في العمل، ومختصر كتابي بالعربية الفصحى بعد كل درس.
نعم، بعد إتمام الدروس واجتياز الاختبارات تحصل على شهادة إتمام يمكن التحقق منها عبر الموقع.
اكتب سؤالك في التعليقات أسفل أي درس وسيجيبك المشرفون، كما يتوفر مساعد ذكي داخل كل درس.
يمكنك الدفع بالبطاقات البنكية، وبالمحافظ الإلكترونية داخل مصر، أو عبر PayPal، والاشتراك لمرة واحدة مدى الحياة.
ابدأ حل المسائل بثقة اليوم
تعلّم كيف تختار الأسلوب المناسب وتثبت صحة حلك بلغة Java، وابدأ بالدروس المجانية الآن.