<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ahmed Ali]]></title><description><![CDATA[Making sense of the why behind it.]]></description><link>https://ahmed90.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 21:26:36 GMT</lastBuildDate><atom:link href="https://ahmed90.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Why Are C and C++ Still Taught First in Universities?]]></title><description><![CDATA[As I gave the data structures final exams in my 4th semester, a major part of my CS journey was complete and it left me wondering, what is even the point…]]></description><link>https://ahmed90.hashnode.dev/why-are-c-and-c-still-taught-first-in-universities</link><guid isPermaLink="true">https://ahmed90.hashnode.dev/why-are-c-and-c-still-taught-first-in-universities</guid><dc:creator><![CDATA[Ahmed Ali]]></dc:creator><pubDate>Sat, 06 Jun 2026 08:20:52 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/69b56c0b210c74252ff801f9/0aa9127f-d12d-4e66-ba93-ac2036562e4c.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>As I gave the data structures final exams in my 4th semester, a major part of my CS journey was complete and it left me wondering, what is even the point of putting yourself in such grueling circumstances where one missing asterisk could crash your whole program.</p>
<p>Before starting my degree program of bachelors in computer science, i had genuinely not heard of C/C++ in my life. The only languages I knew were Python, HTML and CSS.</p>
<p>Later in my first week of uni, when i got to know about it in my class, it seemed very simple at first. That was obviously just the starting topics of data types and very basic stuff. But as the course moved forward, it started getting complex and started going way over my head. There were times when I, like other students used to think of that why are we even learning such an ancient language, and why haven't we already jumped to the cool stuff such as python which were related to the AI mania.</p>
<h2>History of C/C++</h2>
<p>The C programming language was created by Dennis Ritchie between 1972 and 1973 at bell Labs to build the Unix operating system. Its successor, C++, was developed by Bjarne Stroustrup starting in 1979 as an extension adding object-oriented features to C. The main goal was simple, a language that was both efficient and closer to hardware, while also being readable unlike assembly language.</p>
<h2>Case for C/C++</h2>
<ul>
<li><p><strong>Memory management:</strong> The case for C++/C is pretty strong as in first and foremost, the control it gives to a programmer because the language provides much greater control over memory compared to most modern high-level languages.. Therefore, working like that one learns to utilize memory more efficiently, which brings us to our second point.</p>
</li>
<li><p><strong>Performance thinking:</strong> One of the main key features that make it so popular and universally recognized is its speed, we learn about the specific concepts such as pointers and memory management that make it so efficient. We have to take care of each and everything by ourselves while also making sure its quick enough. This introduces the concept of time complexity</p>
</li>
<li><p><strong>No Abstraction:</strong> In high level languages such as Python we mostly deal with functions and we need not know of any working mechanisms behind the scenes. But here we build everything from scratch such as while working with linked list we build a node using a struct and the construct the entire list , implementing each function. We learn what heap and stack are actually in data structures and how they are used and not just that they exist.</p>
</li>
<li><p><strong>Widespread use case:</strong> On the surface we might not really see its hype and its use cases in popular media but under the hood and behind the root of all major infrastructure, we see its presence. The world runs on C and C++, most notably being used in operating systems such as linux kernels, browsers , game engines, robotics and missile technology.</p>
</li>
<li><p><strong>The road ahead:</strong> After messing your head with how pointers work, java's references feel not so hard. All other high level languages' abstractions seem fairly obvious as you understand the why behind it while working so close to memory and managing things manually while learning C++.</p>
</li>
</ul>
<h2>Counter-Argument for other languages</h2>
<ul>
<li><p>Most notably MIT university which is ranked number 1 globally in the field of technology has shifted from C to Python and never looked back . And objectively speaking if students spend less time on syntax retention and memory management and focus more on problem solving skills, it could yield better results in the foreseeable future.</p>
</li>
<li><p>There is a huge number of students who get stuck in learning the syntax and never being able to understand the functioning of C/C++ with memory. Due to this they never develop the required algorithmic thinking required.</p>
</li>
<li><p>If we go through popular job listings in Industry we see a pattern, that they always ask for proficiency in languages such as Python or Java and not particularly C or C++. It raises the question that shouldn't we put more focus on these languages.</p>
</li>
<li><p>There is a significant number of students who drop out from CS because they are unable to cope up with the difficulty of C, and perhaps they could have thrived while learning other high level languages.</p>
</li>
</ul>
<h2>Personal experience</h2>
<p>While studying data structures , there were moments where I genuinely questioned everything. We were implementing linked lists from scratch using structs, building AVL trees, writing heap sort without any built-in functions to rely on. Lab exams where one missing edge case meant your entire code logic was in the ruins now. This against the rapidly running clock was a recipe for high stress levels.</p>
<p>But somewhere along the way something clicked. I realized I wasn't just memorizing syntax. I was actually understanding how data is stored in the memory, why certain operations are slower than others, and what is really happening behind the scenes when Python does things automatically for you.</p>
<p>A fellow of mine who had started with Python was building projects by week three while I was still stuck on pointers. But later when we both took AI together, I had a much clearer picture of why certain operations were computationally expensive and not preferred. This kind of foundation was painful to lay down but equally important.</p>
<h2>Conclusion</h2>
<p>Most of the modern AI development is done in python, and it may seem like C++ is not that important to learn but for foundational knowledge it will always be a very integral part of this field. High performance AI libraries are still written in C++. While its undeniable how python is the fastest path to building applications and providing solutions, C and C++ provide valuable insights on how software interacts with the hardware. This is important when it comes to scaling projects to a massive industry level where peak performance is a necessity.</p>
<p>In my opinion, C++ should always be the preferred option for starting with programming because it develops the algorithmic thinking that helps us to develop the foundational logic for this field of computer science. This logic is a necessity when dealing with upcoming challenges in other subjects and thus helps greatly.Similarly, I also believe that with the changing times, we need to adapt our curriculum slowly with also putting limelight on high level languages, which is the current industry standard. Balance between both sides is necessary to move forward.</p>
<p>Let me know which side do you lean towards and do you think if it should be still the starting point of our CS journey?</p>
]]></content:encoded></item><item><title><![CDATA[Why Machine Learning Was Needed (With a Spam Detection Example)]]></title><description><![CDATA[#Introduction AI is often linked with machine learning today, but in reality it was present long before ML became popular. Early AI systems relied mostly…]]></description><link>https://ahmed90.hashnode.dev/why-machine-learning-was-needed-with-a-spam-detection-example</link><guid isPermaLink="true">https://ahmed90.hashnode.dev/why-machine-learning-was-needed-with-a-spam-detection-example</guid><dc:creator><![CDATA[Ahmed Ali]]></dc:creator><pubDate>Fri, 17 Apr 2026 17:29:58 GMT</pubDate><content:encoded><![CDATA[<p>#Introduction</p>
<p>AI is often linked with machine learning today, but in reality it was present long before ML became popular. Early AI systems relied mostly on AI based approaches, whereas humans did it manually , defining rules for decision making. With the passage of time, as real world issues became more complex, these systems started to fail. In this blog, i will try to argue why rule based systems were not enough and how machine learning improved upon them and also put light on an integral AI branch beyond ML: Search and planning.</p>
<p>#Why rule based systems fail</p>
<p>Rule-based systems work using fixed instructions such as for example:</p>
<p>-if a message contains "free" ,mark it as spam</p>
<p>-if it contains "win" ,mark it as spam</p>
<p>Although it seems simple and effective, it has major limitations,</p>
<p>#1. Lack of flexibility</p>
<p>Rule-based systems cannot adapt to new pattern. If spam messages change wording, the system fails.</p>
<p>#2. Scalability issues</p>
<p>As the problem grows, the number of rules increase which makes the system complex and hard to maintain.</p>
<p>#3.No Learning ability</p>
<p>These kind of systems are unable to learn from data, as they follow only predefined instructions.</p>
<p>#Example : Spam detection</p>
<p>To demonstrate this, I implemented a rule-based spam detection system using simple keyword rules.</p>
<p>While it worked reasonably well, it still made mistakes because:</p>
<ul>
<li><p>Some spam messages did not contain known keywords</p>
</li>
<li><p>Some normal messages contained words like “free” and were wrongly classified</p>
</li>
</ul>
<p>This shows that real-world problems cannot be fully solved using fixed rules.</p>
<p>#how Machine learning solves this</p>
<p>Machine learning takes a different approach, in which instead of writing rules manually, we train models on data.</p>
<p>For this, i used a logistic regression model with TF-IDF features.</p>
<p>#Results</p>
<ul>
<li><p>Rule-based Accuracy: 94%</p>
</li>
<li><p>Machine Learning Accuracy: 96%</p>
</li>
</ul>
<p>The ML model perform significantly better because :</p>
<p>-It learned patterns automatically</p>
<p>-It handled variations better in text</p>
<p>-It generalized better to unseen data.</p>
<p>This shows why machine learning is necessary.</p>
<p>## AI Beyond Machine Learning -- Search and Planning</p>
<p>AI is not just limited to machine learning. One important branch is "Search and Planning". This involves finding the best sequence of actions to reach a goal.</p>
<p>Examples:</p>
<ul>
<li><p>Google Maps finding shortest route</p>
</li>
<li><p>Robots planning movement</p>
</li>
<li><p>Game AI making decisions</p>
</li>
</ul>
<p>Algorithms like:</p>
<ul>
<li><p>Breadth-First Search</p>
</li>
<li><p>Depth-First Search</p>
</li>
<li><p>A* Search</p>
</li>
</ul>
<p>are still widely used today in many applications.</p>
<p>## Why it still matters</p>
<p>Even modern AI systems combine ML with Planning</p>
<p>-ML fully understand the environment</p>
<p>-Planning decides what action to take</p>
<p>Hence, classical AI is still relevant to this day.</p>
<p>#Conclusion</p>
<p>In earlier stages, rule based systems were an important step in AI but with later stages as problems became more difficult, they started to fail. Here comes machine learning which improved AI by enabling systems to learn from data instead of fully relying on fixed pre defined rules.</p>
<p>AI is a very vast field, techniques like search and planning continue to play a crucial role in intelligent systems. In order to fully grasp the complexity of AI , we have to understand both perspectives.</p>
<p><a href="https://hashnode.com/@raqeebr" class="user-mention" data-type="mention" title="Raqeeb">Raqeeb</a> thanks to my TA</p>
]]></content:encoded></item><item><title><![CDATA[Exploring Deep and Wide Search: Insights from the DeepWideSearch Benchmark for LLM-based Agents]]></title><description><![CDATA[Hi, I'm Ahmed Ali Hassan , a computer science student currently completing my bachelors. As part of my course, I have explored this research paper “ A…]]></description><link>https://ahmed90.hashnode.dev/exploring-deep-and-wide-search-insights-from-the-deepwidesearch-benchmark-for-llm-based-agents</link><guid isPermaLink="true">https://ahmed90.hashnode.dev/exploring-deep-and-wide-search-insights-from-the-deepwidesearch-benchmark-for-llm-based-agents</guid><dc:creator><![CDATA[Ahmed Ali]]></dc:creator><pubDate>Sat, 14 Mar 2026 15:01:53 GMT</pubDate><content:encoded><![CDATA[<h1>Introduction:</h1>
<p>Hi, I'm Ahmed Ali Hassan , a computer science student currently completing my bachelors. As part of my course, I have explored this research paper “ A survey of LLM-based Deep Search Agents” (2026), which talks about deep reasoning and wide search capabilities for large language models used in search agents. These agents go beyond the scope of simple keyword searches that we used to do before, they handle a plethora of complex tasks which require that there is an extensive process of information collection beforehand. I will try to summarize all my findings briefly in this blog and discuss how it related to my course.</p>
<h1>Paper Summary:</h1>
<p>The main goal of this research paper was to address this challenge in AI based search agents. Currently LLMs have made massive improvements in language understanding and reasoning but they still face difficulty whenever they are faced with a slightly complex task which requires a deeper reasoning and wide search which is basically searching for a wide range of information from multiple sources. This paper suggests a solution for it, known as DeepWideSearch benchmark, which is the first ever stimulation framework designed around catering to these two problems at the same time specifically.</p>
<p>After extensive research, authors found out that even the best and most accomplished LLMs performed poorly on the benchmark, giving only a meagre success rate of 2.39 percent.</p>
<p>This is a significant indicator for its really an uphill task for these agents to full the required demands of broad information retrieval and deep analysis.</p>
<p>In order to create this, the authors mainly suggested two conversion methods to generate more demanding task.</p>
<p><strong>1 . Deep2Wide Conversion:</strong> In this method, already existing deep search benchmarks are taken which focus on reasoning and expands them by requiring agents to gather more information.</p>
<p><strong>2. Wide2Deep Conversion:</strong> In this one, wide search queries which consist of collecting information from various sources are modified by adding even more complex reasoning tasks, which would require the agent to perform multiple reasoning steps.</p>
<p>Both of these combined make DeepWideSearch a rigorous test for modern search agents.</p>
<h1>Course Connections:</h1>
<p>Primarily, this paper’s findings relate to topics of our course such as agents, search algorithms, and multi-step reasoning.</p>
<ul>
<li><p>The A* algorithm, which we have completed in our course consists of searching for the most optimal path. The major problem we face with that is that it is a single path search, compared to multi step reasoning and wide collection of data which is discussed in this paper in depth.</p>
</li>
<li><p>Agent architecture is also discussed in this and the major complexities of designing autonomous search agents. In our course, we have discussed how agents perform seemingly complicated tasks by going step by step at a time, just like agents talked about here. But in this paper, those specific difficulties which the agents face while gathering a range of information from different sources are mentioned which were not a part of our course.</p>
</li>
</ul>
<p>This connection to my course, helps me understand in a better and more relevant way about the real life implications of these agents in high stakes environment such as business models etc.</p>
<h1>Personal Insights:</h1>
<p>The error analysis part really stood out to me and in particular i found that really intriguing. The authors laid out four key failures modes.</p>
<ol>
<li><p><strong>Lack of reflection:</strong> Mainly agents don’t re-evaluate their mistakes and sometimes stop after hitting a problem, when they get stuck.</p>
</li>
<li><p><strong>Overreliance on Internal Knowledge:</strong>  Instead of searching for new data, agents rely too much on what they already know, which then leads to the same old redundant information most of times.</p>
</li>
<li><p><strong>Insufficient Retrieval:</strong> Even when agents access the web pages, they fail to gather all the information needed for the task due to their failures.</p>
</li>
<li><p><strong>Context Overflow:</strong> This indicates that agents can’t handle too much information at once, especially when there are multiple reasoning steps involved.</p>
</li>
</ol>
<p>This made me understand that even though large scale LLMs are very powerful, agent architecture has still their limitations. There is still a lot of work to be done in this regard, in order to make these systems work for real world handling complex tasks.</p>
<h1>Conclusion:</h1>
<p>The DeepWideSearch benchmark is an important contribution to the field of AI agents, showing how complex it is to integrate deep reasoning and wide search in one single agent.</p>
<p>The current 2.39% success rate tells the persisting need to improve in this agent architecture field. This paper adds valuable insights into agent design and gives us a overview in future research for making such agents that can handle more complex tasks in fields like market analysis and business development.</p>
<h2>Links and mentions:</h2>
<p><a href="https://youtube.com/shorts/mSu05QuZ4Cg?si=1Ju2c5Gtg97AjXFU">https://youtube.com/shorts/mSu05QuZ4Cg?si=1Ju2c5Gtg97AjXFU</a></p>
<p><a href="https://hashnode.com/@raqeebr" class="user-mention" data-type="mention" title="Raqeeb">Raqeeb</a></p>
]]></content:encoded></item></channel></rss>