<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Krithika on Medium]]></title>
        <description><![CDATA[Stories by Krithika on Medium]]></description>
        <link>https://medium.com/@vdjraman?source=rss-5e782536ed88------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7_IZL4cILD4R0lm7B4tSGQ.jpeg</url>
            <title>Stories by Krithika on Medium</title>
            <link>https://medium.com/@vdjraman?source=rss-5e782536ed88------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:37:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vdjraman/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Decoding Your Inner Voice”: Stanford’s Mind-Reading BCI]]></title>
            <link>https://medium.com/@vdjraman/decoding-your-inner-voice-stanfords-mind-reading-bci-555f50fbc75e?source=rss-5e782536ed88------2</link>
            <guid isPermaLink="false">https://medium.com/p/555f50fbc75e</guid>
            <category><![CDATA[research]]></category>
            <category><![CDATA[neurotechnology]]></category>
            <category><![CDATA[biotechnology]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Krithika]]></dc:creator>
            <pubDate>Fri, 29 Aug 2025 07:47:34 GMT</pubDate>
            <atom:updated>2025-08-29T07:47:34.214Z</atom:updated>
            <content:encoded><![CDATA[<h3>Imagine This:</h3><p>You think words silently in your mind, and — poof — they appear as text or speech on a screen. This technology isn’t sci-fi fantasy — it’s happening right now.</p><h3>What’s Going On?</h3><p>Engineers and neuroscientists at <strong>Stanford University</strong> have developed a brain-computer interface (BCI) capable of decoding a person’s <em>inner monologue</em>, with <strong>up to 74% accuracy</strong>. No speaking, no typing — just</p><h3>How It Works:</h3><ul><li>Tiny microelectrode arrays are implanted into the <strong>motor cortex</strong>, the brain region linked to planning speech.</li><li>The system captures neural patterns from <strong>inner speech</strong> — that’s you thinking words silently — and uses AI to decode phonemes and words in real time.</li><li>Participants — people with paralysis due to ALS or stroke — were asked to <em>think</em> specific sentences, and the device translated them. AI models reconstructed the speech based on neural signals linked to a <strong>125,000-word vocabulary</strong>.</li></ul><h3>The Privacy Code:”<strong>Chitty Chitty Bang Bang”</strong></h3><p>This isn’t telepathy — it’s highly controlled. The BCI can inadvertently pick up on random thoughts (like silently counting). To prevent unintended “mind leaks,” Stanford added a <strong>password-triggered system</strong>: users must <em>imagine</em> a unique phrase like <strong>“Chitty Chitty Bang Bang”</strong> to unlock the device for decoding. That safeguard worked with <strong>over 98% accuracy</strong>.</p><h3>The Tech Meets Ethics</h3><p>Decoding thoughts raises big questions about mental privacy and consent. What if the device interprets something you didn’t mean to share? Stanford’s team is proactive: they’re developing filters to ignore unintentional inner speech, and the password system is a smart first guard.</p><h3>What’s Next?</h3><ul><li><strong>Boost Accuracy</strong>: Inner speech signals are faint — future hardware and AI improvements aim to lift the 74% accuracy closer to conversation-ready clarity.</li><li><strong>More Brain Regions</strong>: Including language-processing areas beyond the motor cortex could capture richer neural data.</li><li><strong>Wireless, Fully Implantable BCIs</strong>: Current systems still rely on external cables. The goal is seamless, wearable systems.</li><li><strong>Wider Research and Regulation</strong>: With competition heating up (e.g. Merge, Neuralink), thoughtful policies around brain data privacy will be essential.</li></ul><h3>TL;DR</h3><p>Stanford’s new BCI decodes <em>silent thoughts</em> — your inner speech — into text/speech <strong>with up to 74% accuracy</strong>. It uses microelectrodes, AI, and a creative password lock (“Chitty Chitty Bang Bang”) to make communication possible for people who can’t speak. It’s a groundbreaking step toward natural, fluent brain-to-machine conversation — but it also opens the door to vital ethical discussions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=555f50fbc75e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Wetware Computing: When Brains Meet Bytes]]></title>
            <link>https://medium.com/@vdjraman/wetware-computing-when-brains-meet-bytes-236e09d3288f?source=rss-5e782536ed88------2</link>
            <guid isPermaLink="false">https://medium.com/p/236e09d3288f</guid>
            <category><![CDATA[wetware]]></category>
            <category><![CDATA[biocomputing]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[biotechnology]]></category>
            <category><![CDATA[neurotechnology]]></category>
            <dc:creator><![CDATA[Krithika]]></dc:creator>
            <pubDate>Mon, 25 Aug 2025 06:27:44 GMT</pubDate>
            <atom:updated>2025-08-25T06:27:44.659Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine this: instead of silicon chips, your next computer could be powered by… brain cells. Yes, real, living, squishy neurons. Well, welcome to <strong>wetware computing</strong> — the wild frontier where biology and technology shake hands.</p><h3>🤔 What Exactly Is Wetware Computing?</h3><p>We’ve all heard of <em>hardware</em> (the physical stuff in your laptop) and <em>software</em> (the code running on it). Wetware is the cool, slightly rebellious cousin — it uses <strong>biological material, like neurons, as computing units</strong>.</p><p>Think of it as replacing chips with little brain-like organoids — mini clumps of neurons that can learn, adapt, and even respond to stimuli.</p><p>Your computer, but with the intelligence of a goldfish brain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*8V4lDJTD6IMhmPAAjFGi6Q.png" /><figcaption>image source: <a href="https://www.researchgate.net/figure/Brain-on-a-Chip-for-Wetware-Computing-tasks-The-Brain-on-a-Chip-system-utilizes_fig1_393947506">https://www.researchgate.net/figure/Brain-on-a-Chip-for-Wetware-Computing-tasks-The-Brain-on-a-Chip-system-utilizes_fig1_393947506</a></figcaption></figure><h3>⚡ Why Bother With Neurons?</h3><p>AI is getting smarter every day, but there’s a catch: it eats up insane amounts of electricity. Training a big AI model like GPT-3 can burn as much energy as a small town uses in a year.</p><p>Meanwhile, your brain — arguably the best computer in the universe — runs on about <strong>20 watts</strong> (that’s less than your phone charger).</p><p>So scientists asked:<br> <em>“Why not borrow a trick or two from biology?”</em></p><h3>🧪 How It Works</h3><p>Wetware computing isn’t about transplanting your brain into a laptop (thankfully). Instead, researchers grow tiny <strong>organoids</strong> — mini neural networks made of living cells — in the lab.</p><p>Then they hook them up to electrodes, feed them signals, and watch how they respond. Using clever algorithms, they can “train” these little brains to recognize patterns, control devices, or act like tiny biological processors.</p><p>It’s a bit like raising Tamagotchis, except instead of feeding them digital snacks, you’re training them to compute.</p><h3>🚀 Why It’s Exciting</h3><ul><li><strong>Super Energy Efficient</strong> 🪫 → Brains beat GPUs at sipping power.</li><li><strong>Self-Organizing</strong> 🧩 → Neurons naturally form complex networks — no need to hand-wire logic gates.</li><li><strong>Cross-Disciplinary Coolness</strong> 🤝 → It blends AI, neuroscience, robotics, and even philosophy.</li></ul><p>Imagine a future where your wearable device has a “brain chip” made of neurons, running AI models that barely use battery.</p><h3>😅 But Let’s Be Real…</h3><p>This isn’t happening tomorrow. There are huge challenges:</p><ul><li>Keeping neurons alive long enough (they’re picky roommates).</li><li>Ethical debates (are we making baby brains think?).</li><li>Scaling up from lab curiosities to something as powerful as your laptop.</li></ul><p>Still, the idea that your future computer could be part-living, part-machine is too fascinating to ignore.</p><h3>Who’s Making Wetware Real?</h3><p>Let’s meet the pioneers turning slime-lab dreams into real tech.</p><h3>FinalSpark (Switzerland)</h3><ul><li>Developed a <strong>Neuroplatform</strong> where researchers can run experiments <em>remotely</em> on up to <strong>16 human brain organoids</strong> — alive for over 100 days.</li><li>You plug into a <strong>Python API</strong>, fire commands, stim points, collect data — all without donning a lab coat.</li><li>They’ve fielded interest from dozens of universities and given free access to select projects. Think “Netflix for living neurons,” but for mind control <em>ahem</em> experiment.</li></ul><h3>Cortical Labs &amp; bit.bio (Australia / UK)</h3><ul><li>Co-created <strong>CL1</strong>, a biological computer that spots patterns, learns Pong, and survives on a silicon circuit with human cells. Those neurons grow and interact with code!</li><li>Say goodbye to fossil fuel-hungry AI — this thing consumes way less energy and learns by adapting with rewards and feedback.</li><li>The CL1 can run for <em>up to six months</em>, powered by its onboard life-support and code “biOS.”</li></ul><h3>Koniku (USA)</h3><ul><li>Not exactly playing Pong — for them, <strong>smell is the frontier</strong>. Koniku’s “smell processor” blends live neurons with silicon to detect odors at living-tissue levels. Applications? Think bomb sniffing, disease detection, and even personal health monitoring.</li><li>Their founder calls it “biology as computation.” The more senses you digitize, the closer we get to truly intelligent machines.</li></ul><h3>🌟 Final Thought</h3><p>Wetware computing isn’t just science — it’s a glimpse of a future where <em>life itself</em> becomes technology. Whether it ends up revolutionizing AI or just inspiring the next sci-fi blockbuster, it proves one thing: innovation doesn’t always come in silicon. Sometimes, it grows in a petri dish.</p><p>✨ <strong>TL;DR</strong>: Wetware computing = using neurons instead of chips. It’s energy-efficient, mind-bendingly futuristic, and a little creepy — but it might just power the next generation of AI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=236e09d3288f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dijkstra defeated : New Shortest Path algorithm explained]]></title>
            <link>https://medium.com/@vdjraman/dijkstra-defeated-new-shortest-path-algorithm-explained-f4b77c5eca82?source=rss-5e782536ed88------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4b77c5eca82</guid>
            <category><![CDATA[updates]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[competitive-programming]]></category>
            <category><![CDATA[sorting-algorithms]]></category>
            <category><![CDATA[new-technology-updates]]></category>
            <dc:creator><![CDATA[Krithika]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 08:53:37 GMT</pubDate>
            <atom:updated>2025-08-18T08:53:37.222Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dijkstra defeated : New Shortest Path algorithm explained</h3><h3>Intro: Meet the Classic … and Who’s Beating It</h3><p>Welcome, fellow algorithm adventurers! Have you ever heard of Dijkstra’s Algorithm — the trusty rule-of-thumb for finding the shortest path in graphs? Well, buckle up, because someone just knocked it off its throne.</p><p>Today, we’ll explore a fresh, beginner-friendly breakdown of this new algorithm that <em>beats Dijkstra at its own game</em> .</p><h3>1. What’s Wrong with Dijkstra (and Bellman-Ford)?</h3><ul><li><strong>Dijkstra’s Algorithm</strong><br> Dijkstra uses a priority queue to always pick the next closest node — basically sorting the candidates by distance. That sorting step costs you a <strong>Θ(m + n log n)</strong> runtime, the so-called “sorting barrier.”</li></ul><p><a href="https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm">Dijkstra&#39;s algorithm - Wikipedia</a></p><p><strong>Bellman-Ford Algorithm</strong><br> Bellman-Ford doesn’t sort — it just relaxes edges repeatedly — but it’s notoriously slow, clocking in at <strong>Θ(V·E)</strong> (much slower than Dijkstra for bigger graphs).</p><p><a href="https://en.wikipedia.org/wiki/Bellman%E2%80%93Ford_algorithm">Bellman-Ford algorithm - Wikipedia</a></p><p>Both approaches end up bottlenecked — sorting slows Dijkstra, brute-forcing slows Bellman-Ford.</p><h3>2. The Smart New Approach: Breaking Free of Sorting</h3><p>Here’s the brilliant part: researchers at Tsinghua University (led by Ran Duan and colleagues) have crafted a <strong>deterministic</strong> algorithm that runs in <strong>O(m · log^(2/3) n)</strong> on directed graphs with non-negative weights. That <em>beats</em> Dijkstra when the graph is sparse.</p><p><strong>Why this matters</strong>:</p><ul><li>Runs faster than Dijkstra on large, sparse graphs.</li><li>Works without fiddling with sorting.</li><li>Delivers distances — without bothering with exactly sorted order.</li></ul><h3>3. How Does It Work, in Plain English?</h3><p>Let’s break it down with an analogy:</p><ol><li><strong>Frontier, but Smarter</strong><br> Like Dijkstra, the algorithm explores outward from the source. But instead of maintaining a huge sorted queue, it compresses the frontier into a smaller “pivot set” — clusters of nodes that matter most.</li><li><strong>Bounded Relaxations</strong><br> Borrowing from Bellman-Ford — but used smartly — it performs a <strong>few limited rounds of edge-relaxation</strong> from these pivots (without sorting!). If a node’s shortest path uses just a few hops (say ≤ k), it’s “finished.”<br> Otherwise, that node likely depends on a big pivot and continues to the next round.</li><li><strong>Divide &amp; Conquer (Recursion)</strong><br> The graph is recursively split into smaller subproblems. At each layer, only the most promising pivot nodes are kept for deeper work — keeping the workload manageable and avoiding full sorting.</li></ol><h3>4. Why It Works (Without Fancy Math)</h3><ul><li><strong>Sneaky way around sorting overhead</strong><br> Unlike Dijkstra, it doesn’t need to output the full sorted list of nodes — it just computes distances — so it dodges the <strong>Ω(n log n)</strong> sorting lower bound.</li><li><strong>Efficient selection via pivots</strong><br> Think of the graph’s frontier as a border — this method says, “Only cluster-reps get to move forward,” drastically reducing candidates.</li><li><strong>Deterministic for directed graphs</strong><br> While past breakthroughs worked only on undirected graphs or used randomness, this one works <em>deterministically</em> on general directed graphs with arbitrary non-negative weights.</li></ul><h3>5. Real-World Implications: Why It’s a Big Deal</h3><p>Researchers are calling this one of the most significant algorithmic breakthroughs in decades. It toppled a 40-year barrier and has already won the <strong>Best Paper award at STOC</strong> (Symposium on Theory of Computing).<br> (<a href="https://eu.36kr.com/en/p/3419098143837833?utm_source=chatgpt.com">36Kr</a>, <a href="https://www.scmp.com/news/china/science/article/3321817/chinas-tsinghua-university-helps-break-40-year-old-maths-cap-computer-speed?utm_source=chatgpt.com">South China Morning Post</a>)</p><p>Beyond theory, this could transform fields like:</p><ul><li>Real-time navigation and routing</li><li>Telecoms and network optimization</li><li>Robotics, including drone pathfinding</li></ul><p>As <em>Quanta Magazine</em> puts it: <strong>“The fastest way to find the best routes”</strong> just got a welcome upgrade.</p><h3>Final Thoughts: Should You Ditch Dijkstra?</h3><p>Not necessarily — for small graphs or beginner projects, Dijkstra’s simplicity still rules. But if you’re scaling up, coding in competitive programming, or just nerding out on algorithms, this breakthrough is a huge leap forward.</p><p>Hope you enjoyed this beginner-friendly breakdown!</p><p>Stay curious, stay optimized — and remember: <strong>sorting is out, pivots are in!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4b77c5eca82" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ A Beginner’s Guide to Retrieval-Augmented Generation (RAG)]]></title>
            <link>https://medium.com/@vdjraman/a-beginners-guide-to-retrieval-augmented-generation-rag-c4614a645da5?source=rss-5e782536ed88------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4614a645da5</guid>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Krithika]]></dc:creator>
            <pubDate>Sat, 02 Aug 2025 05:57:17 GMT</pubDate>
            <atom:updated>2025-08-02T05:57:17.019Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the world of <strong>RAG (Retrieval-Augmented Generation)</strong> — where traditional question answering meets the power of external knowledge sources! Whether you’re building your first chatbot or just curious about how ChatGPT can answer questions about PDFs or databases, this fun and beginner-friendly tutorial has you covered.</p><h3>🧠 What Is RAG?</h3><p><strong>Retrieval-Augmented Generation (RAG)</strong> is an architecture that combines the best of two worlds:</p><ul><li><strong>Retrieval-based systems</strong> (like search engines) that are great at fetching relevant information from external knowledge bases.</li><li><strong>Generative models</strong> (like GPT, BERT, etc.) that can generate fluent and coherent natural language responses.</li></ul><p>Together, RAG allows an AI model to answer questions more accurately by “looking things up” before speaking. Think of it as a smart friend who first Googles the topic before giving you an answer.</p><h3>💡 Why RAG is Awesome for Beginners</h3><ul><li>You don’t need a massive dataset to train an entire language model from scratch.</li><li>RAG makes your LLM smarter and more up-to-date.</li><li>You can plug in your <strong>own custom data</strong> (like PDFs, CSVs, or Notion notes).</li></ul><h3>🔧 Tools We’ll Use</h3><ul><li><strong>LangChain</strong> (to handle chaining of steps)</li><li><strong>FAISS / Chroma / Weaviate</strong> (to store and search your documents)</li><li><strong>HuggingFace Transformers</strong> (for language models)</li><li><strong>OpenAI / Mistral / Llama</strong> (your base LLM)</li></ul><h3>🛠️ RAG System Architecture Overview</h3><pre>USER QUERY<br>   ↓<br>[Retriever] ← Document Store (indexed chunked docs)<br>   ↓<br>Relevant context (top K matches)<br>   ↓<br>[Generator LLM] ← Prompt + Retrieved Context<br>   ↓<br>Answer to user’s query</pre><blockquote>💡 Real-World Analogy</blockquote><p>Imagine you’re writing a report about climate change, and your brain is the LLM. You don’t remember all the stats, so you flip through a stack of documents to find what you need — that’s the retrieval part!</p><h3>🚀 Step-by-Step RAG Tutorial</h3><h3>📁 Step 1: Install the Packages</h3><pre>pip install langchain chromadb openai huggingface_hub</pre><h3>📄 Step 2: Load and Split the Document</h3><pre>from langchain.document_loaders import TextLoader<br>from langchain.text_splitter import CharacterTextSplitter<br><br>loader = TextLoader(&quot;my_data.txt&quot;)<br>documents = loader.load()<br>text_splitter = CharacterTextSplitter(chunk_size=500, chunk_overlap=50)<br>docs = text_splitter.split_documents(documents)</pre><h3>🔎 Step 3: Embed the Chunks for Retrieval</h3><pre>from langchain.embeddings import OpenAIEmbeddings<br>from langchain.vectorstores import Chroma<br><br>embedding = OpenAIEmbeddings()<br>vectorstore = Chroma.from_documents(docs, embedding)</pre><h3>📚 Step 4: Initialize the Retriever and LLM</h3><pre>retriever = vectorstore.as_retriever()</pre><h3>5. Load the Language Model</h3><pre>from langchain.llms import OpenAI<br>llm = OpenAI(temperature=0.0)</pre><h3>💬 Step 5: Ask a Question!</h3><pre>from langchain.chains import RetrievalQA<br>qa_chain = RetrievalQA.from_chain_type(llm=llm, retriever=retriever)<br>response = qa_chain.run(&quot;What are the key points in the document?&quot;)<br>print(response)</pre><h3>🧪 RAG + Pandas Example</h3><p>Want to ask questions to a CSV file instead? Try this:</p><pre>import pandas as pd<br>from langchain.agents import create_pandas_dataframe_agent</pre><pre>df = pd.read_csv(&quot;sales_data.csv&quot;)<br>agent = create_pandas_dataframe_agent(llm, df, verbose=True, allow_dangerous_code=True)</pre><pre>agent.run(&quot;Which squad had the most sales in California?&quot;)</pre><h3>🧠 Behind the Scenes — How it Works Conceptually</h3><h3>🤖 Embeddings:</h3><p>Text is turned into a <strong>vector</strong> (a list of numbers that represents meaning).</p><h3>🔍 Retrieval:</h3><p>When you ask a question, the retriever finds the closest matching chunks in the vector database.</p><h3>✍️ Generation:</h3><p>The LLM takes your question <strong>and</strong> the retrieved chunks and generates a smart response.</p><h3>🔄 Advanced Use: RAG with Query Router</h3><p>You can even create a hybrid pipeline where:</p><ul><li>If the question is data-related, it goes to the Pandas agent</li><li>If it’s context-based, it goes to the PDF retriever</li></ul><blockquote>Tip: Use LangChain’s MultiPromptChain or write your own simple router with a few if conditions.</blockquote><h3>🎉 You Did It!</h3><p>You just built your first RAG pipeline! From answering PDF-based questions to exploring CSVs with LLMs — you now have a powerful foundation to build search-augmented apps.</p><h3>🧠 Pro Tips</h3><ul><li>Use <strong>OpenAI API keys</strong> wisely (don’t hardcode them!)</li><li>For large PDFs, experiment with chunk_size and chunk_overlap.</li><li>If deploying, look into <strong>Chroma</strong>, <strong>Weaviate</strong>, or <strong>Qdrant</strong> as scalable vector DBs.</li></ul><h3>🧭 What’s Next?</h3><ul><li>Add <strong>Streamlit</strong> to build a UI.</li><li>Try <strong>RAG with SQL</strong> databases.</li><li>Explore <strong>semantic caching</strong> to speed up repeated queries.</li></ul><h3>🚀 Bonus Challenge</h3><p>Try uploading your own PDF (like your resume!) and ask:</p><blockquote><em>“What are my top 3 skills according to this resume?”</em></blockquote><p>If you enjoyed this tutorial, go build something cool and share it with the world!</p><p>Happy Building</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4614a645da5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ How I Built a Resume That Got Me Internships (As an Engineering Student)]]></title>
            <link>https://medium.com/@vdjraman/%EF%B8%8F-how-i-built-a-resume-that-got-me-internships-as-an-engineering-student-5cd3eb1ca991?source=rss-5e782536ed88------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cd3eb1ca991</guid>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[students]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Krithika]]></dc:creator>
            <pubDate>Wed, 18 Jun 2025 15:38:27 GMT</pubDate>
            <atom:updated>2025-06-24T12:00:56.622Z</atom:updated>
            <content:encoded><![CDATA[<h3>️ How to build a Resume (As an Engineering Student)</h3><p><em>“Your resume is your pitch. If it doesn’t speak in 10 seconds, it won’t be heard at all.”</em> That’s what I realized early as a B.Tech student specializing in Artificial Intelligence and Data Science.</p><p>As someone who’s navigated the journey from coursework to internships, , I want to share how I built a resume that helped me land real opportunities — and how you can too.</p><h3>📌 A Resume That Speaks for You</h3><p>As engineering graduates, we often underestimate our projects, internships, or certifications — or worse, present them poorly. A good resume isn’t about packing everything you’ve done. It’s about <strong>communicating the right things, clearly and impactfully</strong>.</p><p>Here’s how I structured mine.</p><h3>1. Start with Clear Contact Info &amp; Linked Profiles</h3><p>Your name, email, phone number, and <strong>LinkedIn/GitHub</strong> links go right at the top. These links are your <strong>digital footprint</strong>, so make sure your GitHub isn’t empty and your LinkedIn is up-to-date.</p><p><strong>Pro tip:</strong> Use a clean PDF format with no fancy colors or overdesigned templates.</p><pre>KRITHI J<br>Email: krithi@email.com | Phone: +91-XXXXXXXXXX | LinkedIn: linkedin.com/in/krithij | GitHub: github.com/krithij</pre><p>✅ <em>Optional: Add your portfolio or website if you have one.</em></p><h3>🎓 2.Education — Your Foundation</h3><p>List in reverse chronological order.</p><p>I listed my degree — B.Tech in Artificial Intelligence and Data Science — along with a selective list of relevant subjects:</p><p><em>Machine Learning, Deep Learning, Data Structures, Image Processing, NLP, Signal Processing, Web Tech, etc.</em></p><p>This shows both <strong>depth and breadth</strong>.</p><p><strong>Example:</strong></p><p><strong>Bachelor of Engineering in Computer Science</strong><br> ABC Institute of Technology, Chennai<br> <em>Aug 2022— May 2026</em><br> CGPA: 8.5/10</p><p>Include achievements like:</p><ul><li>Relevant coursework (e.g., Data Structures, Web Tech)</li><li>Scholarships or rankings (if applicable)</li></ul><h3>3. Highlight Hands-On Experience</h3><p>For each experience, I followed the <strong>STAR format</strong>:<br> <strong>S</strong>ituation → <strong>T</strong>ask → <strong>A</strong>ction → <strong>R</strong>esult.<br> This helps employers quickly understand what the problem was, what you did, and what impact you made.</p><p><strong>Why it works:</strong> This section shows that you’re not just learning concepts — you’re applying them. Using the STAR format ensures each point is outcome-driven, concise, and impactful. Plus, it highlights key tools (like Pandas, Tableau, PyTorch) without listing them separately again.</p><p><strong>Example:</strong></p><p><strong>Software Intern — TCS iON</strong><br> <em>Jun–Aug 2024 | Remote</em></p><ul><li>Developed data visualization dashboards using Power BI</li><li>Wrote Python scripts to automate data cleaning for client reports that improved the efficiency by 20%.</li></ul><p>🧠 <strong>Pro Tip:</strong><br> Always try to <strong>quantify your impact</strong> where possible. For example:</p><p><em>“Improved process efficiency by 30%” or “Achieved 80% model accuracy”<br> Numbers catch the eye, boost credibility, and help your resume </em><strong><em>perform better in ATS scans</em></strong><em>.</em></p><p>👉 <em>Use active verbs: Developed, Optimized, Built, Automated</em></p><h3>📂 4. Projects — The Most Crucial Section</h3><p>Employers LOVE projects — they show initiative, problem-solving, and hands-on ability.</p><p>Structure each like this:</p><p><strong>[Project Title]</strong><br> <em>Brief Description (1–2 lines)</em></p><ul><li>Built using [Tech Stack], [Platform/Hardware]</li><li>Outcome: [Improved performance by X%, Reduced errors, etc.]</li></ul><p><strong>Example:</strong></p><p><strong>COVID-19 Diagnosis Using Chest X-rays</strong></p><p>-Developed a deep learning model to classify chest X-rays into four categories: COVID-19, Pneumonia, Tuberculosis, and Normal.</p><p>-Built using <strong>Python, TensorFlow, EfficientNet/ResNet, OpenCV</strong>, and <strong>U-Net for segmentation</strong>.</p><p><strong>Outcome:</strong> Achieved <strong>81.4% classification accuracy</strong>; enhanced lung region clarity using CLAHE and U-Net; improved localization with attention modules and CRF layers.</p><h3>🧪 5. Technical Skills — Show What You Know</h3><p>Categorize for easy scanning:</p><p><strong>Programming:</strong> C++, Python, Java<br> <strong>Tools/Tech:</strong> MATLAB, Git, TensorFlow<br> <strong>Frameworks:</strong> Flask, OpenCV<br> <strong>Others:</strong> Excel, Tableau</p><p>👉 <em>Be honest — only list what you’re confident in.</em></p><h3>🏆 6. Achievements, Certifications &amp; Extra Activities</h3><p>Include:</p><ul><li>Hackathon wins or participations</li><li>Online certifications (Coursera, Udemy, etc.)</li><li>GATE/ESE rankings if applicable</li><li>Open-source contributions</li><li>Leadership roles in clubs or tech fests</li></ul><h3>🧭 7. Tailor It for Every Role</h3><p>Don’t send the same resume to every job. Tailor it by:</p><ul><li>Using keywords from the job description</li><li>Highlighting domain-specific skills</li><li>Adding projects specific to the company you are applying to<br>For example : healthcare related projects for healthcare companies , finace related projects for Banking sector</li></ul><h3>📝 Final Resume Checklist</h3><p>✅ One page, clean format<br> ✅ No spelling or grammar mistakes<br> ✅ Quantified achievements where possible<br> ✅ Saved as PDF with proper file name (e.g., Krithika_Resume.pdf)</p><h3>⚙️ Bonus Tools for Engineering Resumes</h3><ul><li><strong>Overleaf</strong> (for LaTeX resumes, great for core roles)</li><li><strong>Canva</strong> (visual resumes for product/startup roles)</li><li><strong>NovoResume</strong>, <strong>Zety</strong>, or <strong>Enhancv</strong> (template-based builders)</li><li><strong>Grammarly</strong> (to eliminate writing errors)</li></ul><h3>🚀 Final Thoughts</h3><p>Your resume won’t get you the job — but it will get you the interview. As an engineering graduate, your edge lies in how well you <strong>translate your skills into outcomes</strong>. Build, test, iterate — just like any engineering solution.</p><p>👩‍💻 <strong>Keep it updated. Keep it sharp. Keep it yours.</strong></p><p><em>Liked this article? Feel free to drop your questions in the comments or reach out on LinkedIn. I’m always happy to help fellow engineers build their career foundations!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cd3eb1ca991" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What to Expect in an Internship Interview (And Quick Tips to Ace It)]]></title>
            <link>https://medium.com/@vdjraman/what-to-expect-in-an-internship-interview-and-quick-tips-to-ace-it-a2e1297fb019?source=rss-5e782536ed88------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2e1297fb019</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Krithika]]></dc:creator>
            <pubDate>Wed, 11 Jun 2025 15:46:14 GMT</pubDate>
            <atom:updated>2025-06-18T15:55:03.089Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Whether it’s on-campus or off-campus, the interview process for most internships — especially Software Development roles — tends to follow a predictable pattern. Understanding this process can make you feel more confident and prepared. So here’s your all-in-one guide to what really happens behind the scenes, and my personal tips to crack it!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HaNw_r5O9G2CdoBRUKforQ.png" /></figure><h3>📝 Step 1: The Resume Shortlisting</h3><p>Once you apply for an internship, your resume goes through either:</p><p><strong>ATS (Applicant Tracking System)</strong>: It scores your resume based on how well it matches the job description (keywords, skills, etc.).</p><ul><li><strong>Manual screening</strong>: Still used by many companies, especially smaller ones or in campus drives.</li></ul><p><strong>🔥 Quick Tip:</strong><br> Tailor your resume to the job description. Use keywords from the job posting, especially skills and tools mentioned.<br>There are websites available to enhance your resume by changing some keywords and you can also check your ATS Score in such websites to know where you stand</p><h3>🎯 Step 2: Online Assessment (OA)</h3><p>If your resume gets shortlisted, you’ll be invited to an <strong>Online Assessment</strong>. This could be in your college lab (on-campus) or remote (off-campus).</p><h3>What to Expect:</h3><ul><li><strong>Proctoring:</strong> Camera &amp; mic on. Screenshots are taken every 5 seconds. Eye movement is tracked.</li><li><strong>Tab Restrictions:</strong> Don’t switch tabs! Even if not explicitly mentioned, doing so may count as cheating.</li><li><strong>Notifications:</strong> Turn off all notifications — email, Slack, WhatsApp. One pop-up can get you flagged.</li><li><strong>Dress Code:</strong> Not important — but don’t be too casual either.</li></ul><h3>Assessment Structure (for Service-Based Companies):</h3><ul><li>Aptitude (MCQ)</li><li>Technical (MCQ)</li><li>SQL Queries</li><li>Python Coding (Easy–Medium, LeetCode-style)</li></ul><h3>Assessment for Product-Based Companies (e.g. Google, Microsoft, Amazon):</h3><ul><li>2 DSA questions (Medium–Hard difficulty)</li><li>Languages: C++ or Python preferred</li><li>Some test cases will be hidden — optimize your solution to handle edge cases.</li></ul><p><strong>🔥 Quick Tip:</strong><br> Practice under time pressure. Use platforms like <a href="https://leetcode.com/">LeetCode</a>, <a href="https://www.hackerrank.com/">HackerRank</a>, or <a href="https://codeforces.com/">Codeforces</a>. Stick to 1–2 languages.</p><h3>👨‍💻 Step 3: Technical Interview</h3><p>If you clear the OA, you’ll be called for a <strong>Technical Interview</strong> — typically held online or at the company office.</p><p>Dress in a formal attire with preferably lighter shades and a really mild perfume . Make sure to knock before entering the room and greet the interviewer as soon as you enter . Don’t make this rookie mistakes of placing your belonging on the table before asking the permission from the interviewer for it.</p><p>Give the interviewer sometime to look into the resume , and then when asked , tell a short 1 min introduction about yourself</p><p>For example this is the introduction i used for a healthcare company:</p><p>Hi, I’m Krithika Janakiraman, a B.Tech student in Artificial Intelligence and Data Science at Shiv Nadar University.</p><p>I’ve worked on applying machine learning to healthcare — currently as a research intern building a CNN model to detect respiratory diseases from breathing patterns, and previously on a COVID-19 diagnosis model using chest X-rays and transfer learning.</p><p>I also built a health diagnosis chatbot using BERT, which gave me hands-on experience with large language models and NLP pipelines. Alongside, I interned as a data analyst, where I created predictive dashboards and analyzed production data using tools like Pandas, Scikit-learn, and Tableau.</p><p>I’m looking forward to contributing my skills in ML and LLMs to impactful research .</p><p>Then the interviewer will start questioning you based on what you mentioned.</p><h3>What They Look At During interview:</h3><ul><li><strong>Your Resume:</strong> Every line is fair game. Be honest and confident.</li><li><strong>Conceptual Clarity:</strong> Topics you mention will guide the interview. So only speak about what you truly understand.</li><li><strong>Communication</strong> : Try to communicate your ideas clearly . Take a 30sec pause after a question to frame a answer in your head and then answer if that question is not something you prepared for .</li></ul><p><strong>Subjects Covered:</strong></p><ul><li>DSA (with questions to solve live)</li><li>OOPs</li><li>Operating Systems (especially basics like processes, threads, memory management)</li><li>SQL</li><li>Questions based on tech stacks you mentioned in your resume</li></ul><p>In <strong>product-based companies</strong>, expect:</p><ul><li>2 DSA questions to be solved on the spot.</li><li>You’re expected to start with a brute-force approach, then optimize.</li><li>Know the <strong>time and space complexity</strong> of your solution.</li></ul><p><strong>🔥 Quick Tip:</strong><br> Take control of the interview. If you’re confident in a topic, speak about it early — it might guide the discussion in your favor.</p><h3>💬 Step 4: HR Interview</h3><p>Congratulations! You’ve cleared the tough part. Now comes the <strong>HR round</strong> — often on the same day as the technical round.</p><h3>What to Expect:</h3><ul><li>General questions like:</li><li><em>“Tell me about a time you faced a hardship and how you overcame it.”</em></li><li><em>“Why do you want to work with us?”</em></li><li>Occasionally, another programming question or a <strong>puzzle</strong>.</li><li>Some companies might ask basic <strong>SQL</strong> or even questions from your resume</li></ul><p>This round is about <strong>culture fit</strong>, communication skills, and assessing if you’re someone the team would like to work with.</p><h3>🎙️ Use the STAR Technique to Frame Your Answers</h3><p>One of the most effective ways to answer behavioral questions is the <strong>STAR technique</strong>:</p><ul><li><strong>S</strong>ituation: Set the context. What was going on?</li><li><strong>T</strong>ask: What were you responsible for?</li><li><strong>A</strong>ction: What did you do to address the problem?</li><li><strong>R</strong>esult: What happened in the end?</li></ul><blockquote><em>Example:<br> 🗨️ </em>“During my third-semester project (Situation), I was responsible for building a web-based inventory tracker (Task). The API kept failing under load, so I implemented caching and load balancing techniques (Action). This reduced response time by 50% and helped us meet the project deadline (Result).”</blockquote><p><strong>🔥 Quick Tip:</strong><br> Keep your answers concise, but impactful. Practice STAR responses for common HR questions like:</p><ul><li>Tell me about a time you led a team.</li><li>Tell me about a failure and what you learned.</li><li>Describe a conflict and how you resolved it.</li></ul><h3>🏁 What Happens Next?</h3><p>The results will usually be announced <strong>the same day</strong> or <strong>within 10–15 days</strong>.</p><blockquote><em>🎉 </em>“If you cracked it — celebrate the win. If not — it’s not the end. Take the learnings, improve, and come back stronger. Every ‘no’ brings you closer to your ‘yes’.”<em> 💪</em></blockquote><h3>💡 Final Thoughts &amp; What’s Next?</h3><ul><li>Practice consistently — both DSA and core CS subjects.</li><li>Know your resume <em>inside out</em>.</li><li>Communicate clearly and confidently in interviews.</li><li>Don’t be disheartened by rejections. They’re part of the process.</li></ul><p>Feel free to DM me for more such insights or queries about your interview prep.<br> 📩 Connect with me on LinkedIn: <a href="https://www.linkedin.com/in/jkrithika/">https://www.linkedin.com/in/jkrithika/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2e1297fb019" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The LL(1) Parser Adventure: A Fun Expedition into Grammar Land!]]></title>
            <link>https://medium.com/@vdjraman/the-ll-1-parser-adventure-a-fun-expedition-into-grammar-land-66de201ff1aa?source=rss-5e782536ed88------2</link>
            <guid isPermaLink="false">https://medium.com/p/66de201ff1aa</guid>
            <category><![CDATA[compiler-design]]></category>
            <category><![CDATA[c-programming]]></category>
            <category><![CDATA[compilers]]></category>
            <category><![CDATA[parser]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Krithika]]></dc:creator>
            <pubDate>Mon, 21 Apr 2025 15:50:37 GMT</pubDate>
            <atom:updated>2025-04-27T07:59:16.137Z</atom:updated>
            <content:encoded><![CDATA[<h3>The LL(1) Parser Adventure</h3><p>Welcome, brave coder! Today, we’re going on a magical quest to understand LL(1) parsers — the tiny grammar-wizards that help compilers understand code.</p><p>— -</p><h3>🌍<strong> Part 1: The Kingdom of Grammars</strong></h3><p><strong>What is a Grammar?</strong><br>Imagine you’re teaching a robot to understand sentences like:</p><blockquote>- The cat eats fish ✅ (Valid) <br>- Fish eats the cat ❌ (Invalid, fish don’t eat cats!)</blockquote><p>A grammar is a set of rules that defines which sentences are valid.</p><p><strong>Types of Grammar Symbols</strong></p><p>- <strong>Terminals (a, b, +, -) </strong>→ Actual words/tokens (like cat, eat) <br>- <strong>Non-Terminals (S, E, T)</strong> → Placeholders for patterns (like &lt;Subject&gt;, &lt;verb&gt;)</p><p>Example Grammar:</p><blockquote>S → NP VP (Sentence = Noun Phrase + Verb Phrase) <br>NP → ‘the’ N (Noun Phrase = ‘the’ + Noun) <br>VP → V NP (Verb Phrase = Verb + Noun Phrase) <br>N → ‘cat’ | ‘fish’ <br>V → ‘eats’</blockquote><p>This means: <br>✅ Valid: <em>the cat eats the fish</em><br>❌ Invalid: <em>eats the cat the fish</em></p><h3><strong>🔍 Part 2: The LL(1) Parser</strong></h3><p>An <strong>LL(1) parser</strong> is like a <strong>mind-reading detective</strong> that: <br>1. Reads input <strong>Left-to-right</strong> (first L in LL(1)) <br>2. Builds a <strong>Leftmost derivation</strong> (second L) <br>3. Uses <strong>1 symbol lookahead</strong> (the (1))</p><p><strong>How Does It Work?</strong><br>It uses <strong>three magic tools</strong>:</p><ol><li><strong>FIRST Sets — “What can start this?” </strong><br>For any symbol (terminal/non-terminal),</li></ol><blockquote>FIRST(X) = all possible <strong>starting terminals</strong>.</blockquote><p>Example: <br>- FIRST(‘the’) = {‘the’} <br>- FIRST(NP) = {‘the’} (since <strong>NP → ‘the’ N</strong>) <br>- If a rule can vanish (e.g., <strong>X → ε</strong>), ε ∈ <strong>FIRST(X)</strong>.</p><p><strong>2. FOLLOW Sets — “What can come after this?</strong><br><strong>FOLLOW(X) </strong>= terminals that can <strong>appear right after X </strong>in any valid sentence.</p><p>Example: <br>- In <strong>S → NP VP</strong>, FOLLOW(NP) includes whatever starts <strong>VP</strong>.</p><p><strong>3. Parsing Table — The Decision Maker!</strong><br>A table that says: <br>&gt; If you’re at non-terminal <strong>X</strong> and see terminal <strong>a</strong>, use production <strong>Y→Z</strong>.</p><p><strong>Part 3: The Code — A C Implementation</strong></p><p>Now, let’s break down the <strong>C code</strong> step by step!</p><p><strong>Data Structures:</strong></p><pre>typedef struct {<br> char symbol; // Non-terminal (e.g., &#39;E&#39;, &#39;T&#39;)<br> char first_set[MAX_SYMBOLS]; // FIRST set (e.g., {&#39;a&#39;, &#39;(&#39;})<br> int first_count; // Size of FIRST set<br> char follow_set[MAX_SYMBOLS];// FOLLOW set (e.g., {&#39;$&#39;, &#39;)&#39;})<br> int follow_count; // Size of FOLLOW set<br>} NonTerminal;</pre><p>- Stores <strong>non-terminals</strong> and their<strong> FIRST</strong> &amp; <strong>FOLLOW</strong> sets.</p><p><strong>🔮 Key Functions</strong></p><p>1. <strong>compute_first(symbol)</strong> — What starts this symbol? <br>- If <strong>symbol</strong> is a terminal → <strong>FIRST(symbol)</strong> = {symbol}<br>- If <strong>symbol </strong>is a non-terminal → Check all its productions: <br> -If<strong> X → aY</strong>, add a to FIRST(X). <br> -If <strong>X → YZ</strong>, add FIRST(Y) (unless Y can vanish, then also FIRST(Z)).</p><p>2.<strong> compute_follow(symbol)</strong> — What comes after this? <br>- For<strong> S(start symbol)</strong>, add<strong> $ (end marker)</strong>. <br>- If <strong>A → αBβ</strong>, then <strong>FOLLOW(B)</strong> includes <strong>FIRST(β)</strong>. <br>- If <strong>β</strong> can vanish, <strong>FOLLOW(B)</strong> also includes <strong>FOLLOW(A)</strong>.</p><p>3.<strong> build_parsing_table() </strong>— What rule to pick? <br>For each production <strong>A → α</strong>: <br>- For each terminal <strong>a</strong> in <strong>FIRST(α)</strong>, put <strong>A → α</strong> in <strong>Table[A][a]</strong>. <br>- If <strong>ε ∈ FIRST(α)</strong>, also put <strong>A → α</strong> for all <strong>b ∈ FOLLOW(A)</strong>.</p><p>4. <strong>parse_input() </strong>— The Actual Parsing!<br>Uses a <strong>stack</strong> to simulate derivation: <br>1. Start with <strong>$</strong> (end marker) and the <strong>start symbol</strong>. <br>2. If <strong>top of stack == input</strong>, match &amp; pop. <br>3. If <strong>top is non-terminal</strong>, check parsing table &amp; expand.</p><p>Example:</p><blockquote>Stack: $E <br>Input: a+a$ <br>Action: E → TX (from table), so replace E with TX (in reverse) <br>Now Stack: $XT</blockquote><p>Let’s Play with an Example!</p><p><strong>Grammar:</strong></p><blockquote>E → TX <br>X → +TX | ε <br>T → FY <br>Y → *FY | ε <br>F → (E) | a</blockquote><p>Parsing <strong>a+a*a</strong>: <br>1. <strong>Stack</strong>: $E <br>2. <strong>Input</strong>: a+a*a$<br>3. <strong>Action</strong>: E → TX (since `FIRST(T) = {‘a’, ‘(‘}`) <br>4. <strong>Stack</strong>: $XT<br>5. <strong>Input still `a`</strong>: <strong>T → FY</strong> (since `FIRST(F) = {‘a’, ‘(‘}`) <br>6. <strong>Stack</strong>: $XYF<br>7.<strong>Input `a`</strong>: <strong>F → a</strong> (match!) <br>8.<strong>Stack</strong>: <strong>$XYa</strong> → Pop `<strong>a</strong>`, advance input to <strong>+</strong><br>9. <strong>Stack:</strong> <strong>$XY</strong> → Y → ε (since <strong>FOLLOW(Y) = {‘+’, ‘$’}</strong>) <br>10. <strong>Stack: $X</strong> → X → +TX (since next is <strong>`+`</strong>) <br>… and so on!</p><h3>Complete implementation of LL(1) Parser in C :</h3><pre>/*<br> * LL(1) Parser Generator<br> *<br> * This program implements an LL(1) parser generator that:<br> * 1. Takes a context-free grammar as input<br> * 2. Computes FIRST and FOLLOW sets for all non-terminals<br> * 3. Constructs the LL(1) parsing table<br> * 4. Parses input strings using the table<br> *<br> * The grammar is input in the form: A=BC where:<br> * - Uppercase letters represent non-terminals<br> * - Lowercase letters represent terminals<br> * - &#39;#&#39; represents epsilon (empty string)<br> */<br><br>#include &lt;stdio.h&gt;      // Standard input/output functions<br>#include &lt;ctype.h&gt;      // Character type functions like isupper()<br>#include &lt;string.h&gt;     // String manipulation functions<br>#include &lt;stdlib.h&gt;     // Standard library functions<br><br>/* Constants to limit grammar size */<br>#define MAX_PROD 10     // Maximum number of productions in the grammar<br>#define MAX_SYMBOLS 10  // Maximum number of symbols in a production or set<br><br>/* Global array to store grammar productions and count */<br>char productions[MAX_PROD][MAX_SYMBOLS];  // Stores the grammar productions<br>int num_productions;                      // Number of productions entered by user<br><br>/* Structure to represent a non-terminal and its properties */<br>typedef struct {<br>    char symbol;                        // The non-terminal symbol<br>    char first_set[MAX_SYMBOLS];        // FIRST set of the non-terminal<br>    int first_count;                    // Number of elements in FIRST set<br>    char follow_set[MAX_SYMBOLS];       // FOLLOW set of the non-terminal<br>    int follow_count;                   // Number of elements in FOLLOW set<br>} NonTerminal;<br><br>/* Global variables for grammar symbols and parsing table */<br>NonTerminal non_terminals[MAX_SYMBOLS];  // Array of non-terminals in the grammar<br>int num_non_terminals = 0;               // Number of non-terminals<br><br>char terminals[MAX_SYMBOLS];             // Array of terminals in the grammar<br>int num_terminals = 0;                   // Number of terminals<br><br>/* 3D parsing table: [non-terminal][terminal][production] */<br>char parsing_table[MAX_SYMBOLS][MAX_SYMBOLS][MAX_SYMBOLS];<br><br>/**<br> * Finds the index of a non-terminal in the non_terminals array<br> * <br> * @param c The non-terminal character to find<br> * @return Index of the non-terminal, or -1 if not found<br> */<br>int get_non_terminal_index(char c) {<br>    for (int i = 0; i &lt; num_non_terminals; i++) {<br>        if (non_terminals[i].symbol == c)<br>            return i;<br>    }<br>    return -1;  // Not found<br>}<br><br>/**<br> * Finds the index of a terminal in the terminals array<br> * <br> * @param c The terminal character to find<br> * @return Index of the terminal, or -1 if not found<br> */<br>int get_terminal_index(char c) {<br>    for (int i = 0; i &lt; num_terminals; i++) {<br>        if (terminals[i] == c)<br>            return i;<br>    }<br>    return -1;  // Not found<br>}<br><br>/**<br> * Adds a symbol to the FIRST set of a non-terminal if not already present<br> * <br> * @param nt_index Index of the non-terminal in non_terminals array<br> * @param symbol Symbol to add to the FIRST set<br> */<br>void add_to_first(int nt_index, char symbol) {<br>    // Check if symbol already exists in FIRST set to avoid duplicates<br>    for (int i = 0; i &lt; non_terminals[nt_index].first_count; i++) {<br>        if (non_terminals[nt_index].first_set[i] == symbol)<br>            return;  // Symbol already exists, nothing to do<br>    }<br>    // Add symbol to FIRST set<br>    non_terminals[nt_index].first_set[non_terminals[nt_index].first_count++] = symbol;<br>}<br><br>/**<br> * Adds a symbol to the FOLLOW set of a non-terminal if not already present<br> * <br> * @param nt_index Index of the non-terminal in non_terminals array<br> * @param symbol Symbol to add to the FOLLOW set<br> */<br>void add_to_follow(int nt_index, char symbol) {<br>    // Check if symbol already exists in FOLLOW set to avoid duplicates<br>    for (int i = 0; i &lt; non_terminals[nt_index].follow_count; i++) {<br>        if (non_terminals[nt_index].follow_set[i] == symbol)<br>            return;  // Symbol already exists, nothing to do<br>    }<br>    // Add symbol to FOLLOW set<br>    non_terminals[nt_index].follow_set[non_terminals[nt_index].follow_count++] = symbol;<br>}<br><br>/**<br> * Computes the FIRST set for a given symbol using the grammar rules<br> * The FIRST set contains all terminals that can appear as the first<br> * symbol in any string derived from this symbol.<br> * <br> * @param symbol The symbol (terminal or non-terminal) to compute FIRST set for<br> */<br>void compute_first(char symbol) {<br>    int nt_index = get_non_terminal_index(symbol);<br>    <br>    if (nt_index != -1) {<br>        // If it&#39;s a non-terminal and FIRST set is already computed, return<br>        if (non_terminals[nt_index].first_count &gt; 0)<br>            return;<br>    } else {<br>        // If it&#39;s a terminal, its FIRST set is itself (handled elsewhere)<br>        return;<br>    }<br><br>    // Loop through all productions to find those where symbol is on the LHS<br>    for (int i = 0; i &lt; num_productions; i++) {<br>        // Skip productions for other non-terminals<br>        if (productions[i][0] != symbol) continue;<br><br>        // Pointer to the right-hand side of the production (skip LHS and &#39;=&#39;)<br>        char *prod = productions[i] + 2;<br>        <br>        // If production is X → ε, add ε to FIRST(X)<br>        if (prod[0] == &#39;#&#39;) { <br>            add_to_first(nt_index, &#39;#&#39;);<br>            continue;<br>        }<br><br>        // Process each symbol in the production right-hand side<br>        for (int j = 0; prod[j] != &#39;\0&#39;; j++) {<br>            char current = prod[j];<br>            <br>            if (isupper(current)) { // Non-terminal (assuming uppercase = non-terminal)<br>                int current_nt = get_non_terminal_index(current);<br>                <br>                if (current_nt == -1) {<br>                    // If this non-terminal is not in our list yet, add it<br>                    non_terminals[num_non_terminals].symbol = current;<br>                    current_nt = num_non_terminals++;<br>                }<br>                <br>                // Recursively compute FIRST for this non-terminal if not already done<br>                compute_first(current);<br>                <br>                // Add all terminals (except ε) from FIRST(current) to FIRST(symbol)<br>                for (int k = 0; k &lt; non_terminals[current_nt].first_count; k++) {<br>                    if (non_terminals[current_nt].first_set[k] != &#39;#&#39;) {<br>                        add_to_first(nt_index, non_terminals[current_nt].first_set[k]);<br>                    }<br>                }<br>                <br>                // Check if this non-terminal can derive ε<br>                int has_epsilon = 0;<br>                for (int k = 0; k &lt; non_terminals[current_nt].first_count; k++) {<br>                    if (non_terminals[current_nt].first_set[k] == &#39;#&#39;) {<br>                        has_epsilon = 1;<br>                        break;<br>                    }<br>                }<br>                <br>                // If it can&#39;t derive ε, stop here<br>                if (!has_epsilon) break;<br>                <br>                // If this is the last symbol and it can derive ε, add ε to FIRST(symbol)<br>                if (prod[j + 1] == &#39;\0&#39;) {<br>                    add_to_first(nt_index, &#39;#&#39;);<br>                }<br>            } else { // Terminal<br>                // If we encounter a terminal, add it to FIRST(symbol) and stop<br>                add_to_first(nt_index, current);<br>                break;<br>            }<br>        }<br>    }<br>}<br><br>/**<br> * Computes the FOLLOW set for a given non-terminal using the grammar rules<br> * The FOLLOW set contains all terminals that can appear immediately <br> * to the right of this non-terminal in any valid sentence.<br> * <br> * @param symbol The non-terminal to compute FOLLOW set for<br> */<br>void compute_follow(char symbol) {<br>    int nt_index = get_non_terminal_index(symbol);<br>    if (nt_index == -1) return;  // Not a non-terminal<br>    <br>    // Rule 1: $ is in FOLLOW(S) where S is the start symbol<br>    if (symbol == productions[0][0]) {<br>        add_to_follow(nt_index, &#39;$&#39;);<br>    }<br>    <br>    // Examine all productions for rules 2 and 3<br>    for (int i = 0; i &lt; num_productions; i++) {<br>        char *prod = productions[i] + 2;  // Skip LHS and &#39;=&#39; character<br>        <br>        // Look for the non-terminal in the right-hand side<br>        for (int j = 0; prod[j] != &#39;\0&#39;; j++) {<br>            if (prod[j] == symbol) {  // Found the symbol in a production<br>                <br>                // Case: Symbol is not at the end of production<br>                if (prod[j + 1] != &#39;\0&#39;) {<br>                    char next = prod[j + 1];<br>                    <br>                    if (isupper(next)) { // Next is a non-terminal<br>                        int next_nt = get_non_terminal_index(next);<br>                        <br>                        // Rule 2: Add all from FIRST(next) - {ε} to FOLLOW(symbol)<br>                        for (int k = 0; k &lt; non_terminals[next_nt].first_count; k++) {<br>                            if (non_terminals[next_nt].first_set[k] != &#39;#&#39;) {<br>                                add_to_follow(nt_index, non_terminals[next_nt].first_set[k]);<br>                            }<br>                        }<br>                        <br>                        // If next can derive ε, also add FOLLOW(production&#39;s LHS)<br>                        int has_epsilon = 0;<br>                        for (int k = 0; k &lt; non_terminals[next_nt].first_count; k++) {<br>                            if (non_terminals[next_nt].first_set[k] == &#39;#&#39;) {<br>                                has_epsilon = 1;<br>                                break;<br>                            }<br>                        }<br>                        <br>                        if (has_epsilon) {<br>                            int lhs_nt = get_non_terminal_index(productions[i][0]);<br>                            for (int k = 0; k &lt; non_terminals[lhs_nt].follow_count; k++) {<br>                                add_to_follow(nt_index, non_terminals[lhs_nt].follow_set[k]);<br>                            }<br>                        }<br>                    } else { // Next is a terminal<br>                        // Simply add the terminal to FOLLOW(symbol)<br>                        add_to_follow(nt_index, next);<br>                    }<br>                } else { // Symbol is at the end of production<br>                    // Rule 3: Add FOLLOW(production&#39;s LHS) to FOLLOW(symbol)<br>                    int lhs_nt = get_non_terminal_index(productions[i][0]);<br>                    for (int k = 0; k &lt; non_terminals[lhs_nt].follow_count; k++) {<br>                        add_to_follow(nt_index, non_terminals[lhs_nt].follow_set[k]);<br>                    }<br>                }<br>            }<br>        }<br>    }<br>}<br><br>/**<br> * Constructs the LL(1) parsing table using the FIRST and FOLLOW sets<br> * For each production A → α:<br> * - For each terminal a in FIRST(α), add A → α to table[A, a]<br> * - If ε is in FIRST(α), for each terminal b in FOLLOW(A), add A → α to table[A, b]<br> */<br>void build_parsing_table() {<br>    for (int i = 0; i &lt; num_productions; i++) {<br>        char lhs = productions[i][0];  // Left-hand side non-terminal<br>        char *rhs = productions[i] + 2;  // Right-hand side (skip LHS and &#39;=&#39;)<br>        int lhs_nt = get_non_terminal_index(lhs);<br>        <br>        // Compute FIRST set of the right-hand side of this production<br>        char first_rhs[MAX_SYMBOLS] = {0};<br>        int first_rhs_count = 0;<br>        int has_epsilon = 0;<br>        <br>        // Process each symbol in the right-hand side<br>        for (int j = 0; rhs[j] != &#39;\0&#39;; j++) {<br>            char current = rhs[j];<br>            <br>            if (isupper(current)) { // Non-terminal<br>                int current_nt = get_non_terminal_index(current);<br>                <br>                // Add all terminals (except ε) from FIRST(current) to FIRST(rhs)<br>                for (int k = 0; k &lt; non_terminals[current_nt].first_count; k++) {<br>                    if (non_terminals[current_nt].first_set[k] != &#39;#&#39;) {<br>                        first_rhs[first_rhs_count++] = non_terminals[current_nt].first_set[k];<br>                    }<br>                }<br>                <br>                // Check if this non-terminal can derive ε<br>                int epsilon_found = 0;<br>                for (int k = 0; k &lt; non_terminals[current_nt].first_count; k++) {<br>                    if (non_terminals[current_nt].first_set[k] == &#39;#&#39;) {<br>                        epsilon_found = 1;<br>                        break;<br>                    }<br>                }<br>                <br>                // If it can&#39;t derive ε, we&#39;re done with this RHS<br>                if (!epsilon_found) break;<br>                <br>                // If this is the last symbol and can derive ε, mark that RHS can derive ε<br>                if (rhs[j + 1] == &#39;\0&#39;) {<br>                    has_epsilon = 1;<br>                }<br>            } else { // Terminal or ε<br>                if (current == &#39;#&#39;) {  // ε production<br>                    has_epsilon = 1;<br>                } else {  // Regular terminal<br>                    first_rhs[first_rhs_count++] = current;<br>                }<br>                break;  // After a terminal, no need to continue<br>            }<br>        }<br>        <br>        // If RHS can derive ε, add production to table for all terminals in FOLLOW(LHS)<br>        if (has_epsilon) {<br>            for (int j = 0; j &lt; non_terminals[lhs_nt].follow_count; j++) {<br>                char term = non_terminals[lhs_nt].follow_set[j];<br>                int term_idx = get_terminal_index(term);<br>                if (term_idx == -1) continue;  // Invalid terminal<br>                strcpy(parsing_table[lhs_nt][term_idx], productions[i]);<br>            }<br>        }<br>        <br>        // Add production to table for all terminals in FIRST(RHS)<br>        for (int j = 0; j &lt; first_rhs_count; j++) {<br>            char term = first_rhs[j];<br>            int term_idx = get_terminal_index(term);<br>            if (term_idx == -1) continue;  // Invalid terminal<br>            strcpy(parsing_table[lhs_nt][term_idx], productions[i]);<br>        }<br>    }<br>}<br><br>/**<br> * Prints the LL(1) parsing table in a readable format<br> */<br>void print_parsing_table() {<br>    printf(&quot;\nParsing Table:\n&quot;);<br>    <br>    // Print column headers (terminals)<br>    printf(&quot;%-10s&quot;, &quot;&quot;);<br>    for (int i = 0; i &lt; num_terminals; i++) {<br>        printf(&quot;%-10c&quot;, terminals[i]);<br>    }<br>    printf(&quot;\n&quot;);<br>    <br>    // Print each row (non-terminal) with its corresponding productions<br>    for (int i = 0; i &lt; num_non_terminals; i++) {<br>        printf(&quot;%-10c&quot;, non_terminals[i].symbol);<br>        for (int j = 0; j &lt; num_terminals; j++) {<br>            if (parsing_table[i][j][0] != &#39;\0&#39;) {<br>                printf(&quot;%-10s&quot;, parsing_table[i][j]);<br>            } else {<br>                printf(&quot;%-10s&quot;, &quot;&quot;);<br>            }<br>        }<br>        printf(&quot;\n&quot;);<br>    }<br>}<br><br>/**<br> * Parses an input string using the LL(1) parsing table<br> * Uses a top-down predictive parsing algorithm with a stack<br> * <br> * @param input The input string to parse<br> * @return 1 if parsing succeeds, 0 if parsing fails<br> */<br>int parse_input(char *input) {<br>    char stack[100];  // Stack for parsing<br>    int top = 0;      // Index of top element<br>    <br>    // Initialize stack with end marker and start symbol<br>    stack[top++] = &#39;$&#39;;  // Bottom of stack is end marker<br>    stack[top] = productions[0][0];  // Push start symbol<br>    <br>    int input_ptr = 0;  // Current position in input<br>    input[strlen(input)] = &#39;$&#39;;  // Append end marker to input<br>    <br>    // Print header for parsing trace<br>    printf(&quot;\n%-20s%-20s%-20s\n&quot;, &quot;Stack&quot;, &quot;Input&quot;, &quot;Action&quot;);<br>    <br>    // Main parsing loop<br>    while (top &gt; 0) {<br>        // Build string representation of stack for output<br>        char stack_str[100] = &quot;&quot;;<br>        for (int i = 0; i &lt;= top; i++) {<br>            char c[2] = {stack[i], &#39;\0&#39;};<br>            strcat(stack_str, c);<br>        }<br>        <br>        // Build string representation of remaining input<br>        char input_str[100] = &quot;&quot;;<br>        strcpy(input_str, input + input_ptr);<br>        <br>        // Print current state<br>        printf(&quot;%-20s%-20s&quot;, stack_str, input_str);<br>        <br>        char current = stack[top];  // Top of stack<br>        char lookahead = input[input_ptr];  // Current input symbol<br>        <br>        // Case 1: Match - top of stack matches current input<br>        if (current == lookahead) {<br>            printf(&quot;Match &#39;%c&#39;\n&quot;, current);<br>            top--;        // Pop stack<br>            input_ptr++;  // Advance input<br>            continue;<br>        }<br>        <br>        // Case 2: Top of stack is a non-terminal<br>        int nt_index = get_non_terminal_index(current);<br>        if (nt_index == -1) {<br>            printf(&quot;\nError: Unexpected symbol &#39;%c&#39;\n&quot;, current);<br>            return 0;  // Parsing failed<br>        }<br>        <br>        // Get terminal index for lookup in parsing table<br>        int term_index = get_terminal_index(lookahead);<br>        if (term_index == -1) {<br>            printf(&quot;\nError: Invalid terminal &#39;%c&#39;\n&quot;, lookahead);<br>            return 0;  // Parsing failed<br>        }<br>        <br>        // Lookup production in parsing table<br>        char *production = parsing_table[nt_index][term_index];<br>        if (production[0] == &#39;\0&#39;) {<br>            printf(&quot;\nError: No production for %c on &#39;%c&#39;\n&quot;, current, lookahead);<br>            return 0;  // Parsing failed<br>        }<br>        <br>        // Apply the production<br>        printf(&quot;Apply %s\n&quot;, production);<br>        <br>        // Pop the non-terminal from stack<br>        top--;<br>        <br>        // Push the right-hand side of production onto stack in reverse order<br>        char *rhs = production + 2;  // Skip LHS and &#39;=&#39;<br>        if (rhs[0] != &#39;#&#39;) { // Skip epsilon (don&#39;t push anything)<br>            for (int i = strlen(rhs) - 1; i &gt;= 0; i--) {<br>                stack[++top] = rhs[i];<br>            }<br>        }<br>    }<br>    <br>    return 1;  // Parsing succeeded<br>}<br><br>/**<br> * Main function - entry point of the program<br> */<br>int main() {<br>    // Get grammar productions from user<br>    printf(&quot;Enter number of productions: &quot;);<br>    scanf(&quot;%d&quot;, &amp;num_productions);<br>    printf(&quot;Enter productions (format A=XYZ, use # for epsilon):\n&quot;);<br>    <br>    // Read each production and build sets of non-terminals and terminals<br>    for (int i = 0; i &lt; num_productions; i++) {<br>        scanf(&quot;%s&quot;, productions[i]);<br>        <br>        // Add left-hand side non-terminal if not already in the list<br>        char lhs = productions[i][0];<br>        if (get_non_terminal_index(lhs) == -1) {<br>            non_terminals[num_non_terminals++].symbol = lhs;<br>        }<br>        <br>        // Collect terminals from right-hand side<br>        char *rhs = productions[i] + 2;  // Skip LHS and &#39;=&#39;<br>        for (int j = 0; rhs[j] != &#39;\0&#39;; j++) {<br>            // If it&#39;s not a non-terminal and not epsilon, it&#39;s a terminal<br>            if (!isupper(rhs[j]) &amp;&amp; rhs[j] != &#39;#&#39;) {<br>                // Check if terminal already exists in list<br>                int found = 0;<br>                for (int k = 0; k &lt; num_terminals; k++) {<br>                    if (terminals[k] == rhs[j]) {<br>                        found = 1;<br>                        break;<br>                    }<br>                }<br>                // Add terminal if not already in list<br>                if (!found) {<br>                    terminals[num_terminals++] = rhs[j];<br>                }<br>            }<br>        }<br>    }<br>    <br>    // Add end marker as a terminal<br>    terminals[num_terminals++] = &#39;$&#39;;<br>    <br>    // Compute FIRST sets for all non-terminals<br>    for (int i = 0; i &lt; num_non_terminals; i++) {<br>        compute_first(non_terminals[i].symbol);<br>    }<br>    <br>    // Compute FOLLOW sets for all non-terminals<br>    // Note: This needs to be done after computing all FIRST sets<br>    for (int i = 0; i &lt; num_non_terminals; i++) {<br>        compute_follow(non_terminals[i].symbol);<br>    }<br>    <br>    // Print computed FIRST and FOLLOW sets<br>    printf(&quot;\nFirst sets:\n&quot;);<br>    for (int i = 0; i &lt; num_non_terminals; i++) {<br>        printf(&quot;%c: { &quot;, non_terminals[i].symbol);<br>        for (int j = 0; j &lt; non_terminals[i].first_count; j++) {<br>            printf(&quot;%c &quot;, non_terminals[i].first_set[j]);<br>        }<br>        printf(&quot;}\n&quot;);<br>    }<br>    <br>    printf(&quot;\nFollow sets:\n&quot;);<br>    for (int i = 0; i &lt; num_non_terminals; i++) {<br>        printf(&quot;%c: { &quot;, non_terminals[i].symbol);<br>        for (int j = 0; j &lt; non_terminals[i].follow_count; j++) {<br>            printf(&quot;%c &quot;, non_terminals[i].follow_set[j]);<br>        }<br>        printf(&quot;}\n&quot;);<br>    }<br>    <br>    // Build and print the LL(1) parsing table<br>    build_parsing_table();<br>    print_parsing_table();<br>    <br>    // Get input string from user and parse it<br>    char input[100];<br>    printf(&quot;\nEnter input string: &quot;);<br>    scanf(&quot;%s&quot;, input);<br>    if (parse_input(input)) {<br>        printf(&quot;\nInput is valid\n&quot;);<br>    } else {<br>        printf(&quot;\nInput is invalid\n&quot;);<br>    }<br>    <br>    return 0;<br>}</pre><p>🏆 Final Thoughts<br>- LL(1) parsers are <strong>predictive </strong>— they guess the right rule using <strong>FIRST</strong> &amp; <strong>FOLLOW</strong>. <br>- They <strong>fail</strong> if the grammar has<strong> left recursion</strong> or <strong>common prefixes</strong>. <br>- The C code implements all steps: <br> — Compute <strong>FIRST </strong>&amp; <strong>FOLLOW</strong><br> — Build the parsing table <br> — Parse input using a stack</p><p>Reference :<br>Neso Academy : <a href="https://youtu.be/clkHOgZUGWU?si=KhajHkjMIM4jyrnB">https://youtu.be/clkHOgZUGWU?si=KhajHkjMIM4jyrnB</a></p><p>Happy parsing! 😃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66de201ff1aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[”Attention Is All You Need” — The Ultimate Beginner-to-Expert Guide]]></title>
            <link>https://medium.com/@vdjraman/attention-is-all-you-need-the-ultimate-beginner-to-expert-guide-a94c50277ce1?source=rss-5e782536ed88------2</link>
            <guid isPermaLink="false">https://medium.com/p/a94c50277ce1</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[transformers]]></category>
            <dc:creator><![CDATA[Krithika]]></dc:creator>
            <pubDate>Sat, 05 Apr 2025 09:51:45 GMT</pubDate>
            <atom:updated>2025-04-05T09:51:45.389Z</atom:updated>
            <content:encoded><![CDATA[<h3>”Attention Is All You Need” — The Ultimate Beginner-to-Expert Guide</h3><p>Welcome! Whether you’re <strong>just starting in AI</strong> or you’re an <strong>expert looking for a quick refresher</strong>, this guide will break down the legendary <strong>Transformer paper</strong> in a way that’s <strong>easy to grasp yet detailed enough</strong> for deep understanding.</p><p>We’ll cover: <br>✅ <strong>What problem Transformers solve </strong><br>✅ <strong>How Attention works (with simple examples)</strong><br>✅ <strong>The full Transformer architecture (step by step)</strong><br>✅ <strong>Why this paper changed AI forever</strong></p><p>Let’s dive in!</p><h3>🤔 <strong>Why Do We Need Transformers?</strong></h3><p>Before Transformers, AI models for language (like <strong>RNNs and LSTMs</strong>) had <strong>two big problems</strong>:</p><p>1. <strong>They were slow</strong>— They processed words <strong>one by one</strong> (sequentially). <br>2. <strong>They struggled with long sentences</strong> — If a word at the start of a sentence affected a word at the end, they often <strong>failed to capture the connection</strong>.</p><blockquote><strong>Example:</strong> <br>“The cat, which was chased by the dog, ran up the tree because it was scared.”</blockquote><p>An <strong>RNN might get confused</strong> about whether <strong>”it”</strong> refers to the cat or the dog. <br>A <strong>Transformer instantly understands</strong> it’s the cat because it looks at <strong>all words at once</strong>!</p><h3>🧠 The Big Idea: Attention Mechanism</h3><p><strong>What is Attention?</strong><br>Think of reading a book. Some words are <strong>more important</strong> than others.</p><blockquote><strong>Example:</strong><br>”She poured water from the <strong>bottle</strong> into the <strong>cup</strong> until it was full.”</blockquote><p><strong>Question:</strong> What does <strong>”it”</strong> refer to? <br>- Your brain <strong>focuses</strong> on <strong>”cup”</strong> because that’s what gets full. <br>- This is <strong>attention</strong> — weighing which words matter most.</p><h4>How Transformers Do It</h4><p>Instead of reading left-to-right like RNNs, Transformers: <br>1. <strong>Look at all words at once</strong>.<br>2.<strong> Assign an “importance score”</strong> to every word when processing each position. <br>3. <strong>Combine the most relevant words</strong> to understand meaning.</p><p>This is called <strong>Self-Attention</strong>.</p><h3><strong>🔍 Self-Attention Explained (For Beginners)</strong></h3><p><strong>Step 1: Represent Words as Vectors</strong><br>Each word is converted into numbers (called<strong> embeddings</strong>).</p><p><strong>Step 2: Create Queries, Keys, and Values </strong><br>- <strong>Query (Q):</strong> “What am I looking for?” <br>- <strong>Key (K):</strong> “What information do I have?” <br>- <strong>Value (V):</strong> “What should I output?”</p><p><strong>Step 3: Calculate Attention Scores</strong><br>The model computes how much<strong> each word should focus on every other word</strong>.</p><blockquote><strong>Example:</strong><br><strong>”The cat sat on the mat.”</strong></blockquote><p>When processing <strong>”sat”</strong>, the model might assign: <br>- High attention to <strong>”cat”</strong> (because the cat did the sitting). <br>- Medium attention to <strong>”mat”</strong> (where it sat). <br>- Low attention to ”the” (not important).</p><p><strong>Step 4: Weighted Sum of Values</strong><br>The final output is a mix of Values, weighted by attention scores.</p><p><strong>The Math:</strong></p><pre>attention = softmax( (Q @ K.T) / √d_k ) @ V  </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*x5AfwuAOQr8TQOExStdSzg.png" /><figcaption><em>(Credit: Jay Alammar’s Illustrated Transformer)</em></figcaption></figure><blockquote>(Imagine highlighting important words in a book — that’s what attention does!)</blockquote><h3><strong>⚡ The Full Transformer Architecture</strong></h3><p>Now, let’s see how everything fits together!</p><p><strong>Step 0: Input Sentence</strong></p><pre>[&quot;The&quot;, &quot;cat&quot;, &quot;sat&quot;, &quot;on&quot;, &quot;the&quot;, &quot;mat&quot;]</pre><h3>Encoder Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*bXOaquQF8CkJHToyhAjD6Q.png" /></figure><p>🔹 <strong>1. Tokenization &amp; Embedding</strong></p><p>Each word is first tokenized (split into subwords or characters using methods like Byte-Pair Encoding or WordPiece), then mapped to a vocabulary index, and finally embedded into a dense vector of size d_model = 512.</p><p>Note: <em>The original Transformer paper used word-level tokenization, but modern implementations (e.g., BERT, GPT) typically use subword methods like Byte-Pair Encoding (BPE) or WordPiece to handle rare words (e.g., ‘running’ → ‘run’ + ‘ning’)</em></p><pre>```<br>Word     Token    Embedding (512D vector)<br>&quot;The&quot;    11       [0.21, -0.15, ..., 0.43]<br>&quot;cat&quot;    298      [0.02, 0.33, ..., -0.18]<br>...      ...      ...<br></pre><p>➡️ Think of it as turning the sentence into a <strong>matrix of size (6, 512)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*G5gq-f-Vv2P_m3Q4Rctsbw.png" /></figure><p>🔹 <strong>2. Positional Encoding</strong></p><p>Since Transformers lack inherent word-order awareness, we inject positional information using fixed sine/cosine patterns. The wavelengths range geometrically from 2π to 20,000π, allowing the model to learn both absolute and relative positions</p><p>Formula:</p><pre>PE(pos, 2i) = sin(pos/10000^(2i/d_model))<br>PE(pos, 2i+1) = cos(pos/10000^(2i/d_model))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*Zl5ucRmNedLcvpKggUekrQ.png" /></figure><pre>Position      Word       PE Vector (same size as embedding)<br><br>0             &quot;The&quot;      [0.00, 1.00, ..., 0.84]<br><br>1             &quot;cat&quot;      [0.84, 0.54, ..., -0.92]<br><br>...            ...                    ...</pre><p>🔍 <strong>Intuition</strong>: It allows the model to know that “cat” came after “The” and before “sat”.</p><p>🔹 <strong>3. Self-Attention (Single Head)</strong></p><p>Let’s focus on the word <strong>“cat”</strong>.</p><ul><li><strong>Query (Q_cat)</strong>: What does “cat” want to know about the context?</li><li><strong>Key (K_sat)</strong>: What info does “sat” have to offer?</li><li><strong>Value (V_sat)</strong>: What representation should “sat” contribute</li></ul><p>Now compute the attention score between “cat” and every other word in the sentence:</p><pre>score = (Q_cat • K_word) / sqrt(d_k)<br>#where d_k is the dimension of keys/queries</pre><p>Note: <em>The division by </em><em>√d_k (where </em><em>d_k is the dimension of keys/queries) scales the dot products to prevent gradient instability during training</em></p><p>This gives weights like:</p><pre>Word        Score (softmaxed)<br><br>The         0.05<br>cat         0.40<br>sat         0.35<br>on          0.10<br>the         0.05<br>mat         0.05</pre><p>➡️ This means “cat” pays most attention to itself and to “sat” — makes sense contextually!</p><p>🔹 <strong>4. Multi-Head Attention</strong></p><p>This isn’t just done once — it’s done in parallel <strong>8 times</strong> (or more), each with different learned projections.</p><pre>Head                 Learns...<br> 1              Subject-verb alignment<br> 2              Determiner-noun links<br> 3              Prepositions and objects<br>...                ...</pre><p>Note: <em>While heads often specialize in different relationships (empirically observed), they are not explicitly programmed to do so — the model learns these roles automatically during training.</em></p><p>Each head has its own learned projection matrices (Wq, Wk, Wv), so the same input gets interpreted in different ways. This enables the model to capture diverse relationships.</p><p>➡️ The results from all heads are <strong>concatenated and linearly transformed</strong>, enriching the representation.</p><p>🔹 <strong>5. Feedforward Network</strong></p><p>After attention, each token gets passed through the same <strong>2-layer neural network</strong>:</p><pre>FFN(x) = max(0, xW₁ + b₁)W₂ + b₂</pre><p>🔧 Helps the model transform its representation in a <strong>non-linear</strong> way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*66lM3hURxO0V6ROUN49ZDw.png" /></figure><p><strong>🔹 6. Residual Connection and Layer Normalization</strong></p><p>🔁 <strong>Skip Connections &amp; LayerNorm</strong><br> Each sub-layer (attention, feedforward) is wrapped with a residual connection followed by Layer Normalization. This helps with gradient flow and stabilizes training:</p><pre>x = LayerNorm(x + Sublayer(x))</pre><h3><strong>Decoder Architecture</strong></h3><p>Now suppose we are translating:<br> <strong>“The cat sat on the mat” → “Le chat s’est assis sur le tapis”</strong></p><p>🔹 <strong>1. Masked Self-Attention</strong></p><p>Decoder also uses self-attention, but with a <strong>mask</strong> to avoid “cheating”.</p><p>During training, the decoder receives the full target sequence as input (with future tokens masked). During inference, it generates tokens autoregressively, one at a time.</p><p>Example: When generating “chat” (word 2), the model can only attend to &lt;sos&gt; and “<strong>Le</strong>”, not future words.</p><pre>Target           Visible words<br>Le                &lt;sos&gt;<br>chat              &lt;sos&gt;, Le<br>s’est             &lt;sos&gt;, Le, chat</pre><p>This preserves <strong>auto-regressive generation</strong>.</p><p>🔹 <strong>2. Encoder-Decoder Attention</strong></p><p>Now the decoder attends to the encoder’s outputs.</p><p>So when generating “<strong>chat</strong>”:</p><ul><li><strong>Query</strong> from decoder’s word “chat”</li><li><strong>Keys/Values</strong> from encoder’s words (“The”, “cat”, …)</li></ul><p>It allows the decoder to <strong>focus on relevant encoder words</strong>.</p><p>Example:<br> When decoding “tapis”, the decoder will likely attend strongly to “mat”.</p><p>🔹 <strong>3. Output Generation</strong></p><p>Autoregressive prediction one token at a time:</p><pre>Step           Input         Prediction<br>1              &lt;sos&gt;           “Le”<br>2              &lt;sos&gt;Le         “chat”<br>3              &lt;sos&gt;Le chat    “s’est”<br>...              ...              ...</pre><p>The decoder’s final output at each step goes through a linear layer followed by softmax to predict the next token. The predicted token is then fed back as input for the next step, preserving the autoregressive nature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bA-k5a_Bk81Ujwo-23wNog.png" /></figure><p><strong>4.Skip Connections &amp; LayerNorm</strong></p><p>Each sub-layer (attention, feedforward) is wrapped with a residual connection followed by Layer Normalization. This helps with gradient flow and stabilizes training</p><p>Note: <em>The original paper applies LayerNorm after the residual (LayerNorm(x + Sublayer(x))), though some variants (e.g., GPT-2) place it before the sublayer.</em></p><p><strong>Training Objective:</strong></p><p>The model is trained to minimize the cross-entropy loss between predicted tokens and the actual next tokens in the sequence (teacher forcing is used during training). For translation, it’s usually trained end-to-end using parallel corpora.</p><p><em>The paper also uses label smoothing (ε = 0.1) to penalize overconfident predictions</em></p><p>🧩 Key Concepts in Action</p><pre>Concept                 How It Works in Our Example<br>Embedding                 &quot;cat&quot; becomes a 512D vector<br>Positional Enc.            Adds info that “cat” is 2nd in the sentence<br>Self-Attention             &quot;cat&quot; attends most to &quot;sat&quot; and itself<br>Masked Attn                Decoder doesn’t look ahead while generating “chat”<br>Encoder-Decoder            “mat” (English) → “tapis” (French) connection</pre><p><strong>🚀 Why Are Transformers So Powerful?</strong><br>✅<strong> Parallel Processing</strong> — No sequential bottleneck (faster training). <br>✅ <strong>Long-Range Dependencies </strong>— Connects distant words easily. <br>✅ <strong>Scalability</strong> — Works great for huge models (GPT-4, BERT).</p><p>Note:<em> The original Transformer paper used word-level embeddings, but modern implementations (like BERT, GPT) often use subword tokenization (e.g., Byte-Pair Encoding) to handle rare/unknown words</em></p><p>🎯 <strong>Real-World Impact</strong><br>- <strong>ChatGPT &amp; GPT-4</strong> (Decoder-only Transformers) <br>- <strong>BERT</strong> (Encoder-only Transformers) <br>- <strong>Google Translate, T5</strong> (Full encoder-decoder)</p><p><strong>Note:</strong> <em>BERT is pre-trained using masked language modeling (predicting hidden words), while GPT is pre-trained via next-token prediction (autoregressive)</em></p><p>— -</p><p>🚧Common Misconceptions:</p><ul><li>Transformers don’t “see” full words; they often operate on subword tokens.</li><li>They aren’t aware of position unless explicitly encoded.</li><li>The term “Attention” refers to multiple mathematical steps, not just softmax scores.</li><li>GPT ≠ full Transformer — it’s decoder-only!</li></ul><p><strong>🔗 Further Learning</strong><br> <br> The Illustrated Transformer (Blog) (<a href="http://jalammar.github.io/illustrated-transformer/">http://jalammar.github.io/illustrated-transformer/</a>) <br> YouTube: Transformers Explained(<a href="https://www.youtube.com/watch?v=SZorAJ4I-sA">https://www.youtube.com/watch?v=SZorAJ4I-sA</a>) <br>Original Paper (arXiv) (<a href="https://arxiv.org/abs/1706.03762">https://arxiv.org/abs/1706.03762</a>) <br>Hugging Face Transformers Course(<a href="https://huggingface.co/course/">https://huggingface.co/course/</a>)</p><p>Interactive Transformer Visualizer : (<a href="https://poloclub.github.io/transformer-explainer/">https://poloclub.github.io/transformer-explainer/</a>)</p><p><strong>*(If you found this helpful, share it with a friend! 🚀)*</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a94c50277ce1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From FOMO to FOMO No More: A Survival Guide for 11th & 12th Grade CS Students]]></title>
            <link>https://medium.com/@vdjraman/from-fomo-to-fomo-no-more-a-survival-guide-for-11th-12th-grade-cs-students-02bbdb1fabe0?source=rss-5e782536ed88------2</link>
            <guid isPermaLink="false">https://medium.com/p/02bbdb1fabe0</guid>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[beginner-coding]]></category>
            <category><![CDATA[college]]></category>
            <category><![CDATA[students]]></category>
            <dc:creator><![CDATA[Krithika]]></dc:creator>
            <pubDate>Tue, 15 Oct 2024 17:12:16 GMT</pubDate>
            <atom:updated>2024-10-15T17:12:16.658Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there, fellow coders and future tech wizards!</p><p>I’m writing this because I was once exactly where you are — bright, eager to learn, but drowning in the vast ocean of computer science resources. Without a mentor, I felt like I was stuck on a slow boat while others zoomed past me into the bustling world of college. Let’s ditch that dreaded FOMO (Fear of Missing Out) together! Buckle up, because this is your ultimate survival guide!</p><h3><strong>Step 1: Master a Programming Language</strong></h3><p>By now, you’ve probably heard of Python (or any other programming language of your choice). If you haven’t, it’s time to make friends with it. I prefer Python because it’s user-friendly, versatile, and perfect for beginners. Start solving basic problems on websites like <strong>HackerRank</strong> or <strong>GeeksforGeeks </strong>— they’re your new playgrounds!</p><p><strong>Why Python?</strong> It’s simple, fun, and gives you that magical feeling when your code finally runs without errors (you’ll know the thrill soon enough). Spend <strong>1 hour a day</strong> for two weeks — trust me, that’s all you need to get comfy. Learn the basics: data types, loops, lists, tuples, dictionaries, and strings. Then, dedicate another<strong> 2 months </strong>to solving basic problems <strong>religiously</strong>. Think of it as training for a marathon — slow and steady wins the race!</p><h3><strong>Step 2: DSA — The Hidden Superpower</strong></h3><p>DSA, or Data Structures and Algorithms, might sound like a secret superhero league, but it’s actually your ticket to cracking any tech interview. In just 1 month (yes, you heard that right), you can master the basics if you spend 1 hours a day. You can start studying about DSA after you get comfortable with programming language of your choice .</p><p>Here’s your superhero roadmap:</p><p>1. <strong>Arrays &amp; Strings</strong> — Meet the backbone of DSA!<br>2. <strong>Linked Lists</strong> — They’ll be your frenemies in coding challenges.<br>3. <strong>Stacks &amp; Queues</strong> — Think of these as tech’s version of managing a line at Starbucks.<br>4.<strong> Trees &amp; Graphs</strong> — They sound scary, but they’re just fancy hierarchies.</p><p>Once you’ve got the hang of these, dive into <strong>LeetCode</strong> for at least <strong>30 minutes</strong> <strong>every day</strong>. Start with easy problems — no need to rush. The goal here is consistency, not speed. Remember, Rome wasn’t built in a day, and neither are your DSA skills!</p><blockquote><strong>Pro Tip</strong>: While you’re building your coding muscles, don’t forget to create a <strong>LinkedIn</strong> account. LinkedIn is a powerful tool for networking, showcasing your projects, and connecting with professionals in the industry. It’s never too early to start building your professional presence!</blockquote><h3><strong>Step 3: Start Developing — Your Ideas, Your Code</strong></h3><p>Now that you’re becoming a DSA ninja, it’s time to dive into development! You’ve got two big options here: <strong>web development</strong> or <strong>app development</strong>. Pick the one that excites you the most (because you’ll be spending a lot of time with it).</p><p>Start learning frontend development — there are plenty of free resources available online, so no need to break the bank on courses. Create a <strong>GitHub account</strong> if you haven’t already.</p><blockquote><strong>Pro tip:</strong> GitHub is your new best friend in college — it’s like an online portfolio for all your cool projects. And yes, you’ll be Googling “What is GitHub?” (get used to living on Google during college).</blockquote><p>For your final school project, don’t just settle for the usual <strong>Library Management System</strong> or <strong>Airplane Management System</strong>. <strong>Level it up</strong> by adding a front-end! Trust me, adding some user interface magic will make your project shine like a beacon in the sea of standard projects.</p><p><strong>Bonus Tip: </strong>Update your LinkedIn profile with your projects. It not only showcases your skills but also makes your profile attractive to potential mentors and employers.</p><h3>Step 4: After Boards = Prime Time to Upskill</h3><p>Here’s the golden phase: after your boards, while others are chilling, you should be upping your game. Start learning <strong>back-end development</strong>. Keep solving DSA questions too — 2–3 question a day is all it takes to stay sharp. It might be a stressful period as you wait to see if you got into your dream university or choose your home for the next 4 years. But toughen up, soldier!</p><p><strong>Don’t Forget LinkedIn</strong>: Use this time to connect with professionals and join relevant groups. Engage with content related to your interests — it’s a great way to stay updated and make meaningful connections.</p><h3>Step 5: College Survival Tips — Slow and Steady</h3><p>Once you’re in college, the world opens up with new possibilities. My advice? <strong>Don’t rush!</strong> Take things slow but steady. Spend just <strong>1 hour a day </strong>learning new skills — be it data science, artificial intelligence, or whatever else sparks your interest. Don’t just stop with watching lectures and fall into tutorial hell . Try creating projects with whatever you learnt .</p><blockquote>Pro tip: You will never feel confident enough to start a project as you would be constantly doubt if you have enough knowledge about it . But doesn’t matter , just start and we can google or ask Chatgpt later .</blockquote><p>Network with others like your future depends on it (because, honestly, it kind of does). Find a senior who can be your mentor, attend workshops, and join newsletters from companies or individuals in your field of interest. Think of networking as collecting power-ups in a video game — each connection can boost your progress!</p><h3>Step 6: After Your First Year — Choose Your Path</h3><p>By the end of your first year, you’ll have enough exposure to start carving your path. Whether it’s <strong>competitive programming</strong>(If you grew fond of DSA), <strong>development</strong>, or something else you find exciting — pick a track and <strong>go deep</strong>. If you’re aiming to land jobs at major tech companies like<strong> Microsoft, Google, or Amazon</strong>, you’ll need:</p><ul><li><strong>Three solid projects </strong>on your resume. These should be challenging enough to stand out and showcase your skills.</li><li><strong>Achievements :</strong> maybe it be the hackatons you won or you rating in leetcode or codeforces</li><li><strong>Strong coding skills</strong> — Here’s where competitive programming (Use platforms like codeforce and codechef to look for more info) can help you shine. Alternatively, if competitive coding feels too stressful, stick to platforms like <strong>LeetCode</strong>. Follow <strong>Striver’s Sheet</strong> or <strong>Neetcode.io</strong> to steadily improve your skills without burning out.</li></ul><h3>The Power of Consistency</h3><p>Here’s the secret sauce: consistency. If you’re putting in just <strong>1 hour a day </strong>towards learning or coding, you’ll be way ahead of the competition. The key isn’t to learn everything at once, but to <strong>keep learning</strong>, even when it feels like progress is slow. Remember, small steps lead to big leaps!</p><h3>Parting Words</h3><p>It’s easy to feel overwhelmed, especially when it seems like everyone else is racing ahead. But with a clear plan, some consistency, and a bit of curiosity, you can build a solid foundation before college even starts. Remember these nuggets of wisdom:</p><p>- <strong>“The journey of a thousand miles begins with a single step.”</strong> — Lao Tzu<br>- <strong>“Don’t compare your Chapter 1 to someone else’s Chapter 20.”</strong><br>- <strong>“Success is the sum of small efforts, repeated day in and day out.”</strong> — Robert Collier</p><p>You’ve got this! Don’t rush. Take your time to explore, learn, and enjoy the process. Who knows? You might just end up inspiring others too.</p><p>— -<br> <br><strong>Bonus Tips to Keep You Going</strong></p><p>- <strong>Join Coding Communities: </strong>Whether it’s online forums like Stack Overflow or discord servers(You can find these through reddit) , being part of a community can provide support and motivation.<br>- <strong>Take Breaks:</strong> Don’t forget to relax and recharge. Your brain needs downtime to process all that awesome new information. Take your time but never waste your time<br>- <strong>Celebrate Small Wins</strong>: Finished a tough problem or built a new feature? Celebrate it! Every achievement, no matter how small, is a step forward.<br>-<strong>Stay Curious</strong>: Always be on the lookout for new technologies and trends. Curiosity is your best friend in the ever-evolving world of computer science.<br>- <strong>Create a LinkedIn Profile</strong>: Start building your professional network early. Connect with classmates, teachers, and professionals in your areas of interest. Your LinkedIn profile is your digital handshake to the tech world!</p><p>— -<br> <br><strong>Connect With Me on LinkedIn!</strong></p><p>I’d love to stay connected and support you on your coding journey. Feel free to reach out and connect with me on [LinkedIn](<a href="https://www.linkedin.com/in/krithika-j-62713b243/">https://www.linkedin.com/in/krithika-j-62713b243/</a>). Let’s grow together and help each other achieve our tech dreams!</p><p>Keep coding, keep dreaming, and most importantly, have fun on this incredible journey. Happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02bbdb1fabe0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Alchemist: My Take on the Universe’s Secret Language]]></title>
            <link>https://medium.com/@vdjraman/the-alchemist-my-take-on-the-universes-secret-language-dbdd5e5185ad?source=rss-5e782536ed88------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbdd5e5185ad</guid>
            <category><![CDATA[books]]></category>
            <category><![CDATA[alchemist]]></category>
            <category><![CDATA[intuition]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[paulo-coelho]]></category>
            <dc:creator><![CDATA[Krithika]]></dc:creator>
            <pubDate>Wed, 09 Oct 2024 06:02:10 GMT</pubDate>
            <atom:updated>2025-04-05T10:31:00.685Z</atom:updated>
            <content:encoded><![CDATA[<p>Okay, I have to admit — <strong>The Alchemist</strong> wasn’t really on my radar until i noticed my best friend had a quote as her WhatsApp bio for almost <strong>three years.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A-ohsKNF4vL31aDawmIuNg.jpeg" /></figure><p>I used to think it was just a cheesy line from <strong>Om Shanthi Om</strong>(any Bollywood fans here?), but after actually <strong>reading</strong> the book, I realized there’s a lot more to it than I originally thought.</p><p>Turns out, <strong>Paulo Coelho’s The Alchemist</strong> is full of life lessons that are both simple and profound. It’s about chasing your dreams, listening to the universe (yes, it talks to you — who knew?), and understanding that even the weirdest things that happen might be part of some <strong>grand cosmic plan</strong>. So, let me share my interpretation of this fascinating book and how it gave new meaning to my friend’s favorite quote.</p><h3><strong>1. Living in the Present: It’s Harder Than It Sounds</strong></h3><p>If there’s one thing I took from <strong>The Alchemist</strong>, it’s that living in the present is a lot harder than it seems. I’m the kind of person who overthinks future plans to the point where I forget to enjoy what’s happening <strong>right now</strong> . Coelho reminds us that the present moment is where all the magic happens.</p><p>Sure, it’s great to plan for the future, but the book taught me that you can’t always control what’s coming. Instead, <strong>focus on today</strong> .If you’re too busy overthinking everything (which, let’s be honest, we all do), you might miss out on the little miracles unfolding in the present. And no, this doesn’t mean tossing all future plans out the window. It just means noticing the sunsets and coffee breaks, and maybe that dog, because they matter too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7K985f96iN-HUT6hHh5jyA.jpeg" /></figure><h3><strong>2. The Universe as Your Personal Wingman</strong></h3><p>Remember that quote my best friend loved? “When you want something, all the universe conspires in helping you achieve it.” After reading <strong>The</strong> <strong>Alchemist</strong>, I finally got it. It’s not just some romantic, mystical notion — it’s a whole philosophy about following your dreams. Coelho suggests that when you truly want something from the heart (not just a fleeting desire, but your life’s purpose), the universe aligns everything to help you achieve it.</p><p>I thought back to moments in my own life when things just fell into place, and now I see those coincidences differently. It’s like you’ve set a GPS for your heart’s true desires, and the universe becomes your personal navigator — detours and all. Of course, you still have to put in the work, but it’s comforting to think that the cosmos has your back. So, next time you see a suspiciously well-timed “coincidence,” maybe it’s just the universe giving you a thumbs-up.</p><h3><strong>3. Overthinking? Yeah, It’s Actually a Conversation with Your Heart</strong></h3><p>If you’re an overthinker like me, you might appreciate this: in <strong>The</strong> <strong>Alchemist</strong>, overthinking is actually reframed as something positive. Coelho says it’s your heart trying to communicate with you — and since your heart is connected to the universe, it’s kind of like a direct line to cosmic wisdom.</p><p>So, the next time you’re spiraling into a deep thought loop, maybe don’t panic. It’s just your heart trying to guide you toward your <strong>Personal Legend</strong> (aka your true purpose). That thought tornado? It might just be the universe nudging you in the right direction, even if it feels overwhelming in the moment.</p><h3><strong>4. The Darkest Hour is Just Before the Dawn</strong></h3><p>Have you ever felt like you were in a place where everything was going wrong, and then, out of nowhere, things started to improve? Coelho nailed that feeling with the idea that</p><blockquote><strong>“The darkest hour of the night comes just before the dawn.”</strong></blockquote><p>It’s a reminder that things often feel toughest just before a breakthrough.</p><p>Personally, I’ve been there — where everything seems stuck, and then one small thing changes, and suddenly it’s like the clouds part. The takeaway?</p><blockquote><strong>Don’t lose hope when things are tough. Your dawn is closer than you think.</strong></blockquote><h3><strong>5. Omens: The Universe’s Secret Language (Are You Listening?)</strong></h3><p>One of the coolest ideas in <strong>The Alchemist</strong> is that the universe talks to you through signs or <strong>“omens.”</strong> It could be anything — a song you keep hearing, a gut feeling you can’t shake, or that odd coincidence that keeps happening. Coelho suggests that if you tune in and pay attention to these omens, they’ll guide you toward your destiny.</p><p>Here’s the fun part: omens are <strong>personal.</strong> What looks like a sign to me might be totally different for you. It’s not one-size-fits-all, which is pretty freeing when you think about it. The universe speaks in its own unique language, and once you start paying attention, it’s like a secret code to help you follow your dreams.</p><h3><strong>6. The Power of Love:</strong></h3><p>Love is a big theme in <strong>The Alchemist</strong>, but not in the way you might expect. It’s not just about romantic love — it’s about the kind of love that lifts you up and pushes you to grow. Whether it’s love for a person, a dream, or even a passion, Coelho shows us that true love isn’t a chain — it’s more like wings that help you soar.</p><p>When you love something deeply, it gives you the courage to pursue it, even when the road gets tough. So, whether you’re chasing a career, a relationship, or just your own personal happiness, remember that love is a powerful motivator. And it’s worth following.</p><p>So, that’s my take on <strong>The Alchemist</strong>. If you’re looking for a book that will not only give you a new perspective on life but also teach you how to speak the universe’s secret language (no magic required), this is the one for you. Trust me, after reading it, you’ll start seeing omens everywhere — and maybe even start believing that the universe really is on your side.</p><p>And as for my best friend’s bio? Well, after <strong>actually</strong> understanding that quote, I can safely say she was onto something all along.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbdd5e5185ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>