<?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 Hakan K. on Medium]]></title>
        <description><![CDATA[Stories by Hakan K. on Medium]]></description>
        <link>https://medium.com/@hakank0?source=rss-b33e7c17bf9a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3nheOHaG-Azls2aZ</url>
            <title>Stories by Hakan K. on Medium</title>
            <link>https://medium.com/@hakank0?source=rss-b33e7c17bf9a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 21:20:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hakank0/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[An Overview of Linked Lists and Nodes]]></title>
            <link>https://medium.com/@hakank0/an-overview-of-linked-lists-and-nodes-a900131c9fb4?source=rss-b33e7c17bf9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a900131c9fb4</guid>
            <category><![CDATA[linked-lists]]></category>
            <dc:creator><![CDATA[Hakan K.]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 20:07:21 GMT</pubDate>
            <atom:updated>2025-03-10T20:07:21.918Z</atom:updated>
            <content:encoded><![CDATA[<p>Linked lists hold an important place among data structures. Due to their dynamic memory management, flexible data storage, and efficient insertion/deletion operations, they are used in many algorithms and systems. In this article, we will examine the concept of <strong>nodes</strong>, one of the fundamental components of linked lists, and explain how they can be implemented in Python.</p><h3>1. What is a Linked List?</h3><p>A linked list is a dynamic data structure in which each node contains the address of the next node. Unlike arrays, they do not need to be stored sequentially in memory, which gives them flexibility.</p><p>Linked lists are categorized into <strong>singly linked lists</strong>, <strong>doubly linked lists</strong>, and <strong>circular linked lists</strong>. In this article, we will focus on a basic <strong>singly linked list</strong> example.</p><h3>2. Implementing a Linked List in Python</h3><p>Below, we will create a <strong>singly linked list</strong> using Python.</p><h3>Defining the Node Class</h3><p>Each node should contain <strong>data</strong> and a <strong>link (next)</strong>:</p><pre>class Node:<br>    def __init__(self, data):<br>        self.data = data        # Data of the node<br>        self.next = None        # Link to the next node</pre><p>Here, data represents the information stored in the node, while the next variable holds the reference to the next node.</p><h3>Defining the LinkedList Class</h3><p>To manage the linked list, we create a <strong>LinkedList</strong> class:</p><pre>class LinkedList:<br>    def __init__(self):<br>        self.head = None  # Initially, the list is empty</pre><p>This class contains only the <strong>head node</strong>. Now, let’s add a method to insert new nodes:</p><h3>Appending a Node to the Linked List</h3><pre>def append(self, data):<br>        new_node = Node(data)<br>        <br>        # If the list is empty, the new node becomes the head<br>        if self.head is None:<br>            self.head = new_node<br>        else:<br>            # Traverse to the end<br>            current = self.head<br>            while current.next:<br>                current = current.next<br>            current.next = new_node  # Link the new node</pre><p>This function creates a new node and appends it to the end of the list.</p><h3>Displaying the Linked List</h3><p>To visualize the added nodes, we define the display function:</p><pre>def display(self):<br>        current = self.head<br>        while current:<br>            print(current.data, end=&quot; -&gt; &quot;)<br>            current = current.next<br>        print(&quot;None&quot;)</pre><p>This function prints the linked list in a readable format.</p><h3>3. Using the Linked List</h3><p>Now, let’s create a linked list, add some nodes, and display it:</p><pre># Create a list and add nodes<br>my_list = LinkedList()<br>my_list.append(10)<br>my_list.append(20)<br>my_list.append(30)</pre><pre># Display the list<br>print(&quot;Linked List:&quot;)<br>my_list.display()</pre><p><strong>Output:</strong></p><pre>Linked List:<br>10 -&gt; 20 -&gt; 30 -&gt; None</pre><h3>4. Conclusion</h3><p>Linked lists are highly useful in dynamic data structures. The ability to <strong>easily insert and delete data compared to arrays</strong> makes them popular in algorithms. However, since each node contains a pointer, <strong>they consume more memory compared to arrays</strong>.</p><p>In this article, we learned how to create and use a <strong>singly linked list</strong> in Python. At a more advanced level, we can explore doubly and circular linked lists to discover their unique advantages!</p><p>If you encounter any issues while running or developing the code, feel free to share in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a900131c9fb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Daily Life Algorithms: Brewing Tea]]></title>
            <link>https://medium.com/@hakank0/daily-life-algorithms-brewing-tea-9175c433e51d?source=rss-b33e7c17bf9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9175c433e51d</guid>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Hakan K.]]></dc:creator>
            <pubDate>Sat, 08 Mar 2025 19:50:50 GMT</pubDate>
            <atom:updated>2025-03-08T19:50:50.379Z</atom:updated>
            <content:encoded><![CDATA[<h3>Drinking tea seems like a simple daily routine, but if we wanted to teach this process to a computer, we would realize how detailed it actually is. Now, let’s analyze the tea brewing process from an algorithmic perspective.</h3><h3>1. Input (Ingredients and Tools)</h3><ul><li>Teapot</li><li>Water</li><li>Tea (Black tea, green tea, or herbal tea)</li><li>Stove or electric kettle</li><li>Tea glass or cup</li><li>Sugar or lemon (optional)</li></ul><h3>2. Tea Brewing Algorithm</h3><p><strong>Start</strong></p><h4>Step 1: Preparing Water</h4><p>1.1. Pour clean drinking water into the lower part of the teapot.<br> 1.2. Adjust the amount of water based on the number of servings.<br> 1.3. Place the teapot on the stove or turn on the electric kettle.<br> 1.4. Wait for the water to boil.</p><h4>Step 2: Preparing the Tea</h4><p>2.1. Add an appropriate amount of tea to the upper part of the teapot.<br> 2.2. Determine the tea amount based on the type of tea used (e.g., 2 teaspoons of black tea for 2 people).<br> 2.3. Pour the boiled water into the upper teapot over the tea leaves.</p><h4>Step 3: Brewing the Tea</h4><p>3.1. Reduce the amount of boiling water in the lower teapot slightly (to prevent overflowing).<br> 3.2. Place the upper teapot on top of the lower one.<br> 3.3. Lower the stove heat to prevent the tea from burning.<br> 3.4. Let the tea <strong>steep for at least 10–15 minutes</strong>.</p><h4>Step 4: Serving the Tea</h4><p>4.1. Check the tea’s color and intensity.<br> 4.2. Pour a portion of the brewed tea (from the upper teapot) into the tea glass.<br> 4.3. Add hot water from the lower teapot to adjust the strength of the tea.<br> 4.4. Add sugar or lemon if desired.<br> 4.5. The tea is now ready to serve.</p><p><strong>End</strong></p><h3>3. Output (Result)</h3><ul><li>A well-balanced, deliciously brewed tea.</li><li>Any mistake in the process (e.g., letting the tea steep too long or not boiling the water properly) can affect the quality.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9175c433e51d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Veri Bilimi vs Makine Öğrenimi vs Yapay Zeka]]></title>
            <link>https://medium.com/@hakank0/veri-bilimi-vs-makine-%C3%B6%C4%9Frenimi-vs-yapay-zeka-00e32c883e8d?source=rss-b33e7c17bf9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/00e32c883e8d</guid>
            <category><![CDATA[veri-bilimi]]></category>
            <category><![CDATA[makine-öğrenmesi]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[yapay-zeka]]></category>
            <dc:creator><![CDATA[Hakan K.]]></dc:creator>
            <pubDate>Wed, 26 Feb 2025 10:37:32 GMT</pubDate>
            <atom:updated>2025-03-08T19:44:05.254Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data Science, Machine Learning, and Artificial Intelligence: Interconnected Yet Distinct Disciplines</h3><p>Artificial Intelligence (AI) is essentially nothing more than an automation system that collects, processes, and presents previously available data — often publicly accessible. I say “often” because AI can also use the inputs you provide as data. But is it ethical for AI to collect and use this data? This is a debatable topic. After all, you might be sharing sensitive information, such as your company’s private data or personal health details.</p><p>Let’s not stray from the topic — ultimately, AI is nothing without human-provided data.</p><p>This is where data science becomes crucial. The process of researching, learning, and especially experimenting leads to valuable insights that need to be taught to and processed by machines.</p><p>Did any sentence in the previous paragraph catch your attention? Yes, machine learning immediately enters the picture. Machine learning is a subfield of AI that enables computers to learn from data without being explicitly programmed. Data science forms the foundation of this process because, for machines to learn, high-quality and meaningful data is essential. Remember, while these three fields are distinct, they only gain true significance when working together.</p><p>In summary, for AI systems to evolve, they require machine learning; for machine learning to be effective, it needs data. When these three fields come together, they create powerful and efficient AI systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00e32c883e8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>