<?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 Fatih Eren on Medium]]></title>
        <description><![CDATA[Stories by Fatih Eren on Medium]]></description>
        <link>https://medium.com/@fatiheren4129?source=rss-84d369a9a7de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3lJ5B04PNdv5ZQSV</url>
            <title>Stories by Fatih Eren on Medium</title>
            <link>https://medium.com/@fatiheren4129?source=rss-84d369a9a7de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:44:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fatiheren4129/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[Predicting Champions in Europe’s Top Football Leagues]]></title>
            <link>https://medium.com/@fatiheren4129/predicting-champions-in-europes-top-football-leagues-d0450390c837?source=rss-84d369a9a7de------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0450390c837</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[league]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[football]]></category>
            <category><![CDATA[şampiyonlar-ligi]]></category>
            <dc:creator><![CDATA[Fatih Eren]]></dc:creator>
            <pubDate>Fri, 16 May 2025 11:26:07 GMT</pubDate>
            <atom:updated>2025-05-16T11:26:07.409Z</atom:updated>
            <content:encoded><![CDATA[<h3>Objective:</h3><p>The goal of this project is to build a machine learning model that predicts the <strong>league champions</strong> of the top 5 European football leagues (Premier League, La Liga, Bundesliga, Serie A, Ligue 1) for the 2023–2024 season. The model will use match results, team statistics, player performance, and league standings as key inputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*PDg46t-jsm_I-zilOPkqaQ.jpeg" /></figure><h3>Datasets Used:</h3><ul><li>matches.csv: Match dates, home and away teams, full-time and half-time scores</li><li>standings.csv: League standings, points, wins, losses, draws</li><li>players.csv: Player details and their associated teams</li><li>scores.csv: Goal scorers and match event date</li><li>teams.csv: Team metadata (foundation year, stadium, coach)</li><li>coaches.csv: Coach information and affiliations</li></ul><h3>Project Workflow:</h3><h4>1. Data Preprocessing</h4><ul><li>Read all CSV files using pandas from the SQLite database.</li><li>Handle missing values, remove duplicates, ensure consistent formatting.</li><li>Join datasets to enrich match data with team and player details.</li></ul><h4>2. Feature Engineering</h4><ul><li>Average goals scored and conceded per team</li><li>Points per match ratio</li><li>Squad strength (aggregated from player performance data)</li><li>Number of managerial changes</li><li>Form in the last 5 matches</li><li>Home vs away performance statistics</li></ul><h4>3. Modeling</h4><ul><li>Framed as a classification problem: “Will this team win the league?”</li><li>Potential algorithms:</li><li>Logistic Regression</li><li>Random Forest</li><li>XGBoost</li><li>Train the model using data from the first X weeks of the 2023–2024 season.</li></ul><h4>4. Prediction</h4><ul><li>Simulate remaining matches and estimate final league standings.</li><li>Predict the team with the highest points as the potential champion.</li></ul><h4>5. Evaluation</h4><ul><li>Validate model predictions on past seasons.</li><li>Compare predicted champions with actual outcomes.</li></ul><h3>Expected Outputs:</h3><ul><li>Champion prediction and probability for each league</li><li>Simulated final league table</li><li>Visual analysis and interpretation of model predictions</li><li>League-specific performance reports</li></ul><h3>Tools &amp; Libraries:</h3><ul><li>Python (Pandas, NumPy)</li><li>Scikit-learn, XGBoost</li><li>Matplotlib, Seaborn</li><li>SQLite3</li><li>Jupyter Notebook</li></ul><h3>Advanced Ideas:</h3><ul><li>Integrate injury and suspension data for key players</li><li>Adjust team strength based on post-transfer window squad</li><li>Add fan influence (home crowd advantage score)</li></ul><pre>import sqlite3<br><br># SQLite veritabanı oluştur / bağlan<br>conn = sqlite3.connect(&quot;sports_league.sqlite&quot;)<br>cursor = conn.cursor()<br><br># TEAMS tablosu<br>cursor.execute(&quot;&quot;&quot;<br>CREATE TABLE IF NOT EXISTS teams (<br>    team_id INTEGER PRIMARY KEY,<br>    name TEXT NOT NULL,<br>    founded_year INTEGER,<br>    stadium TEXT,<br>    coach_id INTEGER<br>);<br>&quot;&quot;&quot;)<br><br># PLAYERS tablosu<br>cursor.execute(&quot;&quot;&quot;<br>CREATE TABLE IF NOT EXISTS players (<br>    player_id INTEGER PRIMARY KEY,<br>    name TEXT NOT NULL,<br>    position TEXT,<br>    birth_date TEXT,<br>    nationality TEXT,<br>    team_id INTEGER,<br>    FOREIGN KEY (team_id) REFERENCES teams(team_id)<br>);<br>&quot;&quot;&quot;)<br><br># MATCHES tablosu<br>cursor.execute(&quot;&quot;&quot;<br>CREATE TABLE IF NOT EXISTS matches (<br>    match_id INTEGER PRIMARY KEY,<br>    date TEXT,<br>    home_team_id INTEGER,<br>    away_team_id INTEGER,<br>    home_team_goals INTEGER,<br>    away_team_goals INTEGER,<br>    stadium TEXT,<br>    referee_id INTEGER,<br>    league_id INTEGER,<br>    season TEXT,<br>    FOREIGN KEY (home_team_id) REFERENCES teams(team_id),<br>    FOREIGN KEY (away_team_id) REFERENCES teams(team_id)<br>);<br>&quot;&quot;&quot;)<br><br># STANDINGS tablosu<br>cursor.execute(&quot;&quot;&quot;<br>CREATE TABLE IF NOT EXISTS standings (<br>    id INTEGER PRIMARY KEY AUTOINCREMENT,<br>    league_id INTEGER,<br>    team_id INTEGER,<br>    matchday INTEGER,<br>    points INTEGER,<br>    wins INTEGER,<br>    draws INTEGER,<br>    losses INTEGER,<br>    goals_for INTEGER,<br>    goals_against INTEGER,<br>    FOREIGN KEY (team_id) REFERENCES teams(team_id)<br>);<br>&quot;&quot;&quot;)<br><br># SCORES tablosu<br>cursor.execute(&quot;&quot;&quot;<br>CREATE TABLE IF NOT EXISTS scores (<br>    score_id INTEGER PRIMARY KEY AUTOINCREMENT,<br>    match_id INTEGER,<br>    scorer_id INTEGER,<br>    minute INTEGER,<br>    is_penalty INTEGER DEFAULT 0,<br>    is_own_goal INTEGER DEFAULT 0,<br>    FOREIGN KEY (match_id) REFERENCES matches(match_id),<br>    FOREIGN KEY (scorer_id) REFERENCES players(player_id)<br>);<br>&quot;&quot;&quot;)<br><br># Değişiklikleri kaydet ve bağlantıyı kapat<br>conn.commit()<br>conn.close()<br><br>print(&quot;✅ Tablolar başarıyla oluşturuldu.&quot;)</pre><pre>✅ Tablolar başarıyla oluşturuldu.</pre><h3>Story for Presentation:</h3><blockquote><em>“Messi, Mbappé, Kane, Haaland… With world-class talent on the pitch, who has what it takes to become a champion? This project uses real-world data to simulate the season and reveal who is statistically most likely to lift the trophy across Europe’s biggest football leagues.”</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*zyTzBfIjpaOw55aXc1CTjQ.jpeg" /></figure><blockquote>What We Did?</blockquote><blockquote>We created teams, players, matches, standings, scores tables.<br>We defined key relationships (FOREIGN KEY).<br>SQLite file was created as “sports_league.sqlite”.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0450390c837" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SORTING CLASS LIST BUY STUDENT NUMBER]]></title>
            <link>https://medium.com/@fatiheren4129/sorti%CC%87ng-class-li%CC%87st-buy-student-number-26b13709f153?source=rss-84d369a9a7de------2</link>
            <guid isPermaLink="false">https://medium.com/p/26b13709f153</guid>
            <category><![CDATA[engeneering]]></category>
            <category><![CDATA[sıralama]]></category>
            <category><![CDATA[kod]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Fatih Eren]]></dc:creator>
            <pubDate>Tue, 13 May 2025 12:07:44 GMT</pubDate>
            <atom:updated>2025-05-13T12:10:19.753Z</atom:updated>
            <content:encoded><![CDATA[<p>SORTING CLASS LIST BUY STUDENT NUMBER</p><p>To sort a list of student IDs with their class rankings in software, you would typically use sorting algorithms. Here are some common approaches to achieve this in programming:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*hL5kfOFjvsXOH0VB-2kn2Q.png" /></figure><ol><li><strong>Bubble Sort</strong>: This simple algorithm repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. It is easy to implement but not the most efficient for large datasets.</li><li><strong>Quick Sort</strong>: This is a divide-and-conquer algorithm that works by selecting a ‘pivot’ element and partitioning the list into two sub-lists, then recursively sorting the sub-lists. It’s faster than bubble sort for larger lists.</li><li><strong>Merge Sort</strong>: Another divide-and-conquer algorithm that splits the list into smaller sub-lists, sorts them, and then merges them back together. It is stable and has a time complexity of O(n log n), making it quite efficient.</li><li><strong>Insertion Sort</strong>: This algorithm builds the sorted list one element at a time, inserting each new element into its correct position. It’s efficient for small lists but not ideal for large datasets.</li><li><strong>Timsort</strong>: A hybrid sorting algorithm derived from merge sort and insertion sort. It’s optimized for real-world data and is the default sorting algorithm in many programming languages like Python.</li></ol><p>To implement sorting, you can use built-in sorting functions in most languages, such as:</p><ul><li><strong>Python</strong>: sorted() or .sort()</li><li><strong>Java</strong>: Arrays.sort()</li><li><strong>C++</strong>: std::sort()</li></ul><p>If you want to sort by student numbers (IDs), you would sort the list of student objects or IDs in ascending or descending order depending on your requirements.</p><p>Here is an example of how to implement the <strong>Bubble Sort</strong> algorithm to sort students by their ID numbers in Python. Let’s assume you have a list of student objects, each containing a student ID.</p><h3>Example Code (Bubble Sort):</h3><pre>class Student:<br>    def __init__(self, student_id, name):<br>        self.student_id = student_id<br>        self.name = name<br><br>    def __repr__(self):<br>        return f&quot;Student({self.student_id}, &#39;{self.name}&#39;)&quot;<br><br><br>def bubble_sort(students):<br>    n = len(students)<br>    # Outer loop for each pass<br>    for i in range(n):<br>        swapped = False<br>        # Inner loop for comparing and swapping adjacent elements<br>        for j in range(0, n - i - 1):<br>            if students[j].student_id &gt; students[j + 1].student_id:<br>                # Swap if the current ID is greater than the next<br>                students[j], students[j + 1] = students[j + 1], students[j]<br>                swapped = True<br>        # If no two elements were swapped in inner loop, then the list is sorted<br>        if not swapped:<br>            break<br><br><br># List of students<br>students = [<br>    Student(103, &quot;Alice&quot;),<br>    Student(101, &quot;Bob&quot;),<br>    Student(104, &quot;Charlie&quot;),<br>    Student(102, &quot;David&quot;)<br>]<br><br># Print before sorting<br>print(&quot;Before Sorting:&quot;)<br>for student in students:<br>    print(f&quot;{student.student_id}: {student.name}&quot;)<br><br># Sort the students by student ID using Bubble Sort<br>bubble_sort(students)<br><br># Print after sorting<br>print(&quot;\nAfter Sorting:&quot;)<br>for student in students:<br>    print(f&quot;{student.student_id}: {student.name}&quot;)</pre><h3>Explanation:</h3><ul><li>The Student class has two attributes: student_id and name.</li><li>The bubble_sort function implements the Bubble Sort algorithm:</li><li>The outer loop goes through the list multiple times, and the inner loop compares adjacent elements.</li><li>If the student_id of one student is greater than the next, they are swapped.</li><li>The swapped flag is used to optimize the algorithm: if no swaps were made during a pass, the list is already sorted, and we break out of the loop early.</li></ul><p>Output:</p><pre>Before Sorting:<br>103: Alice<br>101: Bob<br>104: Charlie<br>102: David<br><br>After Sorting:<br>101: Bob<br>102: David<br>103: Alice<br>104: Charlie</pre><p>This code sorts the students by their student IDs using the Bubble Sort algorithm.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26b13709f153" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hospital dataset is a relational database schema designed for a hospital management system.]]></title>
            <link>https://medium.com/@fatiheren4129/hospital-dataset-is-a-relational-database-schema-designed-for-a-hospital-management-system-0a5fed2279fa?source=rss-84d369a9a7de------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a5fed2279fa</guid>
            <category><![CDATA[verification]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[hospital]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Fatih Eren]]></dc:creator>
            <pubDate>Fri, 02 May 2025 11:02:57 GMT</pubDate>
            <atom:updated>2025-05-02T11:02:57.544Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hospital dataset is a relational database schema designed for a hospital management system. It contains tables related to patients, doctors, patient hospitalization information and cities. The schema is as follows.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DEnEDmfy8EIr6Pe91XSAqw.png" /></figure><p>Tables in the Dataset and Their Short Descriptions: <br>patients: <br>Patients’ ID information, date of birth, gender, city of residence, height/weight information and allergies are included.</p><p>2. doctors: <br>Doctors’ name-surname and specialty areas are included.</p><p>3. admissions: <br>Patients’ hospital admission and discharge dates, diagnosis information and the identity of the attending physician are kept.</p><p>4. province_names: <br>The province code (province_id) and the province name (province_name) of the cities where the patients live are matched. <br>What Can Be Done with This Dataset? <br>You can analyze the most common diseases. <br>You can learn which doctor sees the most patients. <br>You can see the patient groups that apply to the hospital most frequently. <br>You can learn which province or city the most patients come from. <br>Questions I created about this dataset;</p><p>1. What is the total number of patients in the database? <br>🔹 Answer: This query returns the total number of patients in the patients table. <br>output : total patients = 4530 <br>This query returns the total number of patients by counting all the rows in the patients table.</p><p>2. How old is the oldest patient? <br>🔹 Answer: Returns the age of the oldest patient according to their birth date. <br>Output: 89</p><p>YEAR(CURDATE()) — YEAR(birth_date) → Calculates the age of the patient. <br>ORDER BY birth_date ASC → Brings the patient with the oldest birth date to the top. <br>LIMIT 1 → Returns only the oldest patient.</p><p>3. How many patients are there in which city?</p><p>Answer: Which city has the most patients?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5RB7pfj37P-AEA18S5pqrQ.png" /></figure><p>To find out how many patients there are in each province, we need to combine the patients and province_names tables to calculate the number of patients in each province. <br> <br>JOIN province_names pn ON p.province_id = pn.province_id → Matches the province_id in the patients table with the province_names table. <br> <br>COUNT(*) AS patient_count → Counts the number of patients in each province. <br> <br>GROUP BY pn.province_name → Groups by province. <br> <br>ORDER BY patient_count DESC → Ranks the provinces with the most patients at the top.</p><p><strong>4. What is the most common disease (diagnosis)? 🔹</strong></p><p>Answer: Shows the most diagnosed disease.</p><p>output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Y6WcAbrmuEn_jDafZZ_ag.png" /></figure><p>to find the most common disease (diagnosis), we need to group the data in the diagnosis column in the admissions table to determine the most repeated diagnosis.</p><p>GROUP BY diagnosis → Groups each diagnosis.</p><p>COUNT(*) AS diagnosis_count → Counts the number of times each diagnosis occurs.</p><p>ORDER BY diagnosis_count DESC → Brings the most common disease to the top.</p><p>LIMIT 1 → Brings the most common single disease.</p><p><strong>5. What is the longest hospital stay? 🔹</strong></p><p>Answer: Calculates the longest hospital stay of a patient.</p><p>Output: 45</p><p>To find the longest hospital stay, we need to calculate the difference between the admission_date and discharge_date columns in the admissions table. DATEDIFF(discharge_date, admission_date) → Calculates the difference in days between the discharge date and the admission date.</p><p>MAX(…) → Finds the longest hospital stay.</p><p><strong>6. Who is the doctor who sees the most patients? 🔹</strong></p><p>Answer:</p><p>Lists the name and surname of the doctor who sees the most patients.</p><p>output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C-UoUrPakUmheO9KoqKuqQ.png" /></figure><p>To find the doctor who sees the most patients, we need to calculate which doctor sees the most patients using the attending_doctor_id column in the admissions table.</p><p>JOIN doctors d ON a.attending_doctor_id = d.doctor_id → Matches the doctor ID in the admissions table with the doctor ID in the doctors table.</p><p>COUNT(*) AS patient_count → Counts the number of patients each doctor sees.</p><p>GROUP BY d.doctor_id → Groups each doctor.</p><p>ORDER BY patient_count DESC → Brings the doctor who sees the most patients to the top.</p><p>LIMIT 1 → Returns only the doctor who sees the most patients.</p><p><strong>7. Which city do most patients come from? 🔹</strong></p><p>Answer:</p><p>Shows the city where most patients come from.</p><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lTLMJg1uGou2-bB4B6O5Ng.png" /></figure><p>To find out which city the most patients come from, we need to group the city column in the patients table and calculate the number of patients coming from each city.</p><p>GROUP BY city → Groups patients by city.</p><p>COUNT(*) AS patient_count → Counts how many patients come from each city.</p><p>ORDER BY patient_count DESC → Brings the city with the most patients to the top.</p><p>LIMIT 1 → Returns only the city with the most patients.</p><p><strong>8. What is the average patient height and weight?</strong></p><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e95WJbm9TySdZkbn85idRA.png" /></figure><p>To find the average patient height and weight, we need to calculate the average of the relevant columns in the patients table.</p><p>AVG(height) AS avg_height → Calculates the average height of all patients.</p><p>AVG(weight) AS avg_weight → Calculates the average weight of all patients.</p><p><strong>9. How many patients were hospitalized in 2024?</strong></p><p>🔹 Answer: Shows the total number of hospitalizations in 2024.</p><p>Output: 0</p><p>To find how many patients were hospitalized in 2024, we need to filter the records for 2024 using the admission_date column in the admissions table.10. Which specialty doctors are preferred the most?</p><p>YEAR(admission_date) = 2024 → Filters only the hospitalizations for 2024.</p><p>COUNT(*) AS total_admissions → Calculates the total number of hospitalizations in 2024.</p><p><strong>10. Which specialist doctors are preferred the most?</strong></p><p>🔹 Answer: The doctor who accepts the most patients lists his/her specialist field.</p><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YLfvb4RPgRfju1OZbUw5Rg.png" /></figure><p>To find the most preferred specialty, we need to use the attending_doctor_id column in the admissions table to match the specialties in the doctors table and calculate which specialties the doctors accept the most patients.</p><p>JOIN doctors d ON a.</p><p>attending_doctor_id = d.doctor_id → Matches the doctor ID in the patient admissions with the specialties of the doctors.</p><p>GROUP BY d.specialty → Groups by specialty.</p><p>COUNT(*) AS patient_count → Calculates the total number of patients in each specialty.</p><p>ORDER BY patient_count DESC → Brings the most preferred specialty to the top.</p><p>LIMIT 1 → Returns only the most preferred specialty.</p><p><strong>Hospital Dataset Analysis — Short Results Report</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hyPJbxdhe6n0UsEdvlRj5g.png" /></figure><p>This dataset is a hospital management system database that includes patient demographic information, hospitalization records, and basic information about doctors. According to the analysis performed:</p><p>Disease Trends: By determining the most common diagnosis, it can be determined which health problems the hospital provides more service to.</p><p>Patient Profile: Which age group and which cities more patients come from can be analyzed.</p><p>Doctor Efficiency: The doctors who see the most patients and the most visited specialties can be examined.</p><p>Hospital Stay: The effectiveness of healthcare services can be measured by determining the average number of days patients stay in the hospital.</p><p>However, there are some deficiencies in the dataset such as the hospital name, doctors’ education information, and patient satisfaction data. If these fields are added, a more comprehensive healthcare service analysis can be performed.</p><p>In general, this dataset is an important resource that can help hospital management understand patient traffic, doctors’ performance, and common diseases. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a5fed2279fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOSPİTAL VERİ SETİ VE KOD ÇIKTILARI]]></title>
            <link>https://medium.com/@fatiheren4129/hospital-veri-seti-bir-hastane-y%C3%B6netim-sistemi-i%C3%A7in-tasarlanm%C4%B1%C5%9F-bir-ili%C5%9Fkisel-veri-taban%C4%B1-b2fb452c9600?source=rss-84d369a9a7de------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2fb452c9600</guid>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Fatih Eren]]></dc:creator>
            <pubDate>Thu, 27 Mar 2025 08:26:28 GMT</pubDate>
            <atom:updated>2025-03-27T08:28:52.987Z</atom:updated>
            <content:encoded><![CDATA[<p>Hospital veri seti, bir <strong>hastane yönetim sistemi</strong> için tasarlanmış bir <strong>ilişkisel veri tabanı şemasıdır</strong>. İçeriğinde hastalar, doktorlar, hasta yatış bilgileri ve iller ile ilgili tablolar bulunmaktadır. Şema aşağıdaki gibidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QUWQ4BsZOXwayau_W1SlpA.png" /></figure><h3>Veri Setindeki Tablolar ve Kısa Açıklamaları:</h3><ol><li><strong>patients (Hastalar):</strong></li></ol><ul><li>Hastaların kimlik bilgileri, doğum tarihi, cinsiyeti, yaşadığı şehir, boy/kilo bilgileri ve alerjileri bulunur.</li></ul><p><strong>2. doctors (Doktorlar):</strong></p><ul><li>Doktorların ad-soyadı ve uzmanlık alanları yer alır.</li></ul><p><strong>3. admissions (Hasta Yatışları):</strong></p><ul><li>Hastaların hastaneye giriş ve çıkış tarihleri, tanı bilgileri ve ilgilenen doktorun kim olduğu tutulur.</li></ul><p><strong>4. province_names (İller):</strong></p><ul><li>Hastaların yaşadığı şehirlerin <strong>il kodu (province_id)</strong> ve <strong>il adı (province_name)</strong> eşleştirilir.</li></ul><h3>Bu Veri Seti ile Neler Yapılabilir?</h3><ul><li>En çok rastlanan hastalıkları analiz edebilirsin.</li><li>Hangi doktorun daha çok hasta baktığını öğrenebilirsin.</li><li>En sık hastaneye başvuran hasta gruplarını görebilirsin.</li><li>En çok hangi il veya şehirden hasta geldiğini öğrenebilirsin.</li></ul><p>Bu veri seti ile ilgili oluşturduğum sorular;</p><h3>1. Veri tabanındaki toplam hasta sayısı nedir?</h3><p>🔹 <strong>Cevap:</strong> Bu sorgu, patients tablosundaki toplam hasta sayısını döndürür.</p><p>çıktı : total patients = 4530</p><p>Bu sorgu, <strong>patients</strong> tablosundaki tüm satırları sayarak toplam hasta sayısını döndürür.</p><h3>2. En yaşlı hasta kaç yaşında?</h3><p>🔹 <strong>Cevap:</strong> Hastaların doğum tarihine göre en yaşlısının yaşını döndürür.</p><p>çıktı : 89</p><ul><li>YEAR(CURDATE()) - YEAR(birth_date) → Hastanın yaşını hesaplar.</li><li>ORDER BY birth_date ASC → <strong>En eski doğum tarihine sahip</strong> olan hastayı en üste getirir.</li><li>LIMIT 1 → <strong>Sadece en yaşlı hastayı</strong> getirir.</li></ul><h3>3. Hangi ilde kaç hasta var?</h3><pre>🔹 Cevap: En çok hasta hangi şehirde bulunuyorsa onu gösterir.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UCTa3NySRU3g3gXxkQcr0A.png" /></figure><p>Hangi ilde kaç hasta olduğunu bulmak için <strong>patients</strong> ve <strong>province_names</strong> tablolarını birleştirerek <strong>her ilin hasta sayısını</strong>hesaplamamız gerekiyor.</p><ul><li>JOIN province_names pn ON p.province_id = pn.province_id → <strong>patients</strong> tablosundaki province_id ile <strong>province_names</strong> tablosunu eşleştirir.</li><li>COUNT(*) AS patient_count → Her ilde kaç hasta olduğunu sayar.</li><li>GROUP BY pn.province_name → İl bazında gruplama yapar.</li><li>ORDER BY patient_count DESC → En fazla hastaya sahip illeri en üste sıralar.</li></ul><h3>4. En yaygın hastalık (teşhis) nedir?</h3><p>🔹 <strong>Cevap:</strong> En fazla teşhis edilen hastalığı gösterir.</p><p>çıktı :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q3WAhNqp47PFWJ4StMHUHw.png" /></figure><p>en yaygın hastalığı (teşhisi) bulmak için <strong>admissions</strong> tablosundaki <strong>diagnosis</strong> (teşhis) sütunundaki verileri gruplandırarak en çok tekrar eden teşhisi belirlememiz gerekir.</p><ul><li>GROUP BY diagnosis → Her teşhisi gruplar.</li><li>COUNT(*) AS diagnosis_count → Her teşhisin kaç kez tekrar ettiğini sayar.</li><li>ORDER BY diagnosis_count DESC → En yaygın hastalığı en üste getirir.</li><li>LIMIT 1 → <strong>En çok görülen tek hastalığı</strong> getirir.</li></ul><h3>5. En uzun hastanede kalış süresi kaç gündür?</h3><p>🔹 <strong>Cevap:</strong> Bir hastanın hastanede en uzun kaldığı süreyi hesaplar.</p><p>çıktı : 45</p><p>Hastanede en uzun kalış süresini bulmak için <strong>admissions</strong> tablosundaki <strong>admission_date</strong> (yatış tarihi) ve <strong>discharge_date</strong>(taburcu tarihi) sütunları arasındaki farkı hesaplamamız gerekir.</p><ul><li>DATEDIFF(discharge_date, admission_date) → Taburcu tarihi ile yatış tarihi arasındaki gün farkını hesaplar.</li><li>MAX(...) → En uzun kalış süresini bulur.</li></ul><h3>6. En çok hastaya bakan doktor kimdir?</h3><p>🔹 <strong>Cevap:</strong> En fazla hasta kabul eden doktorun adını ve soyadını listeler.</p><p>çıktı :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7gY4tKvbTmM0NAjBVe9sKw.png" /></figure><p>En çok hastaya bakan doktoru bulmak için <strong>admissions</strong> (hastane yatışları) tablosundaki <strong>attending_doctor_id</strong> sütununu kullanarak hangi doktorun en fazla hastaya baktığını hesaplamamız gerekir.</p><ul><li>JOIN doctors d ON a.attending_doctor_id = d.doctor_id → <strong>admissions</strong> tablosundaki doktor kimliği ile <strong>doctors</strong>tablosundaki doktor kimliğini eşleştirir.</li><li>COUNT(*) AS patient_count → Her doktorun baktığı hasta sayısını sayar.</li><li>GROUP BY d.doctor_id → Her doktor için gruplama yapar.</li><li>ORDER BY patient_count DESC → En fazla hastaya bakan doktoru en üste getirir.</li><li>LIMIT 1 → <strong>Sadece en çok hasta bakan doktoru</strong> getirir.</li></ul><h3>7. En fazla hangi şehirden hasta geliyor?</h3><p>🔹 <strong>Cevap:</strong> En çok hastanın geldiği şehri gösterir.</p><p>çıktı :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0aLInRkCuSOP_-ZaBG3DSA.png" /></figure><p>En fazla hangi şehirden hasta geldiğini bulmak için <strong>patients</strong> tablosundaki <strong>city</strong> sütununu gruplandırarak, her şehirden gelen hasta sayısını hesaplamamız gerekir.</p><ul><li>GROUP BY city → Hastaları şehir bazında gruplar.</li><li>COUNT(*) AS patient_count → Her şehirden kaç hasta geldiğini sayar.</li><li>ORDER BY patient_count DESC → En fazla hastanın geldiği şehri en üste getirir.</li><li>LIMIT 1 → <strong>Sadece en çok hastanın geldiği şehri getirir.</strong></li></ul><h3>8. Ortalama hasta boyu ve kilosu nedir?</h3><pre>🔹 Cevap: Hastaların ortalama boyunu ve kilosunu hesaplar.</pre><p>çıktı :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DIm9TF_d-Gp3a3e7AspGOw.png" /></figure><p>Ortalama hasta boyu (<strong>height</strong>) ve kilosunu (<strong>weight</strong>) bulmak için <strong>patients</strong> tablosundaki ilgili sütunların ortalamasını hesaplamamız gerekir.</p><ul><li>AVG(height) AS avg_height → Tüm hastaların boy ortalamasını hesaplar.</li><li>AVG(weight) AS avg_weight → Tüm hastaların kilo ortalamasını hesaplar.</li></ul><h3>9. 2024 yılında kaç hasta hastaneye yatış yaptı?</h3><p>🔹 <strong>Cevap:</strong> 2024 yılında yapılan toplam yatış sayısını gösterir.</p><p>çıktı : 0</p><p>2024 yılında kaç hastanın hastaneye yatış yaptığını bulmak için <strong>admissions</strong> (hasta yatışları) tablosundaki <strong>admission_date</strong>sütununu kullanarak, 2024 yılına ait kayıtları filtrelememiz gerekir.10. En çok hangi uzmanlık alanındaki doktorlar tercih ediliyor?</p><ul><li>YEAR(admission_date) = 2024 → Sadece <strong>2024 yılına</strong> ait yatışları filtreler.</li><li>COUNT(*) AS total_admissions → 2024 yılında yapılan toplam yatış sayısını hesaplar.</li></ul><h3><strong>10. En çok hangi uzmanlık alanındaki doktorlar tercih ediliyor?</strong></h3><p>🔹 <strong>Cevap:</strong> En çok hasta kabul eden doktor uzmanlık alanını listeler.</p><p>çıktı :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xBSwgBApNMsXr97d0kWZgg.png" /></figure><p>En çok tercih edilen uzmanlık alanını bulmak için, <strong>admissions</strong> (hasta yatışları) tablosundaki <strong>attending_doctor_id</strong>sütununu kullanarak, <strong>doctors</strong> tablosundaki uzmanlık alanlarıyla eşleştirip en çok hangi uzmanlığa sahip doktorların hasta kabul ettiğini hesaplamamız gerekir.</p><ul><li>JOIN doctors d ON a.attending_doctor_id = d.doctor_id → Hasta yatışlarındaki doktor kimliğiyle doktorların uzmanlık alanlarını eşleştirir.</li><li>GROUP BY d.specialty → <strong>Uzmanlık alanına</strong> göre gruplama yapar.</li><li>COUNT(*) AS patient_count → Her uzmanlık alanındaki toplam hasta sayısını hesaplar.</li><li>ORDER BY patient_count DESC → En çok tercih edilen uzmanlık alanını en üste getirir.</li><li>LIMIT 1 → <strong>Sadece en çok tercih edilen uzmanlık alanını</strong> getirir.</li></ul><h3><strong>Hastane Veri Seti Analizi — Kısa Sonuç Raporu</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*42_tQIZmMslvhkHF2sD-VA.jpeg" /></figure><p>Bu veri seti, hastaların demografik bilgileri, hastaneye yatış kayıtları ve doktorlarla ilgili temel bilgileri içeren bir <strong>hastane yönetim sistemi</strong> veri tabanıdır. Yapılan analizlere göre:</p><ul><li><strong>Hastalık Trendleri:</strong> En sık görülen teşhis belirlenerek hastanenin hangi sağlık sorunlarına daha çok hizmet verdiği tespit edilebilir.</li><li><strong>Hasta Profili:</strong> Hangi yaş grubu ve hangi şehirlerden daha fazla hasta geldiği analiz edilebilir.</li><li><strong>Doktor Verimliliği:</strong> En fazla hasta bakan doktorlar ve en çok ziyaret edilen uzmanlık alanları incelenebilir.</li><li><strong>Hastanede Kalış Süresi:</strong> Hastaların ortalama kaç gün hastanede kaldığı belirlenerek sağlık hizmetlerinin etkinliği ölçülebilir.</li></ul><p>Ancak, veri setinde <strong>hastane ismi, doktorların eğitim bilgileri ve hasta memnuniyet verileri</strong> gibi bazı eksiklikler bulunmaktadır. Eğer bu alanlar eklenirse, daha kapsamlı bir sağlık hizmetleri analizi yapılabilir.</p><p>Genel olarak, bu veri seti hastane yönetiminin hasta trafiğini, doktorların performansını ve yaygın hastalıkları anlamasına yardımcı olabilecek önemli bir kaynaktır. 📊😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2fb452c9600" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hash Functions: Secure and Fast Data Processing]]></title>
            <link>https://medium.com/@fatiheren4129/hash-functions-secure-and-fast-data-processing-20bdc87dfbe9?source=rss-84d369a9a7de------2</link>
            <guid isPermaLink="false">https://medium.com/p/20bdc87dfbe9</guid>
            <category><![CDATA[function]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Fatih Eren]]></dc:creator>
            <pubDate>Tue, 25 Mar 2025 11:15:44 GMT</pubDate>
            <atom:updated>2025-03-25T11:25:13.182Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s world of big data, efficiently and securely processing information is crucial, and <strong>hash functions</strong> play a key role in achieving this. But what exactly are hash functions, and where are they used? In this article, we’ll explore the fundamentals of hash functions, their applications, and some real-world examples.</p><h3>What is a Hash Function?</h3><p>A hash function is a mathematical function that converts an input of any size (such as text or a file) into a <strong>fixed-length</strong>output. This output is known as a <strong>hash value</strong> or <strong>hash code</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*38XIkg8uK-C86FNhvY9fQg.png" /></figure><h3>Applications of Hash Functions</h3><p>Hash functions are widely used in various fields. Here are some of the most common applications:</p><h3>1. Encryption and Data Security</h3><p>When we log into a website, our passwords are typically stored as <strong>hashed values</strong>. This ensures that even system administrators cannot see the actual passwords. For instance, a website might store user passwords as <strong>SHA-256</strong> hashes instead of plain text. When a user logs in, the entered password is hashed and compared to the stored hash.</p><h3>2. Data Integrity Verification</h3><p>When downloading files, you may notice an <strong>MD5</strong> or <strong>SHA-256</strong> checksum. These are used to verify that the file has not been altered during transmission. By comparing the original and downloaded file hashes, users can ensure data integrity.</p><h3>3. Databases and Data Structures (Hash Tables)</h3><p>Hash tables are used for <strong>fast data retrieval</strong> in large datasets. For example, Python’s <strong>dictionary</strong> data structure uses hash tables, enabling quick lookups in <strong>O(1) time complexity</strong>.</p><h3>4. Cryptocurrencies and Blockchain Technology</h3><p>Bitcoin and other cryptocurrencies use hash functions to secure transactions and manage blockchain integrity. Bitcoin mining, for example, involves solving a complex <strong>SHA-256</strong> hash function to create new blocks.</p><h3>Real-World Example: Trendyol and Hash Functions</h3><p>How can <strong>Trendyol</strong>, a major e-commerce platform, use hash functions?</p><ul><li><strong>User Passwords</strong>: Hashing ensures that passwords are securely stored and never exposed in plain text.</li><li><strong>Product Tracking</strong>: Each product’s stock-keeping unit (SKU) can be indexed using a hash function for fast retrieval.</li><li><strong>Order Verification</strong>: Hash functions can verify that an order has not been tampered with.</li></ul><p>import hashlib</p><p>def hash_password(password: str) -&gt; str:<br> # Şifreyi hash’lemek için SHA-256 algoritmasını kullanıyoruz<br> sha256_hash = hashlib.sha256()<br> # Şifreyi encode edip hash fonksiyonuna ekliyoruz<br> sha256_hash.update(password.encode(‘utf-8’))<br> # Hash’i hexadecimal (16&#39;lık) formatta döndürüyoruz<br> return sha256_hash.hexdigest()</p><p># Kullanım örneği<br>password = “gizlişifre123”<br>hashed_password = hash_password(password)<br>print(f”Hashlenmiş şifre: {hashed_password}”)</p><pre>Hashlenmiş şifre: e0b165b72d75b9013cb48f33a992645c21c7ec2999d1d8b5e25dbd4c711dd3f1</pre><h3>Conclusion</h3><p>Hash functions are essential for <strong>secure data storage, fast data retrieval, and blockchain technology</strong>. They are used everywhere, from <strong>websites and databases to cryptocurrency and file integrity verification</strong>.</p><p><strong>Where have you encountered hash functions in your daily life?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20bdc87dfbe9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Veritabanı Tasarımı: öğrenci ders kayıt diyagramı]]></title>
            <link>https://medium.com/@fatiheren4129/veritaban%C4%B1-tasar%C4%B1m%C4%B1-%C3%B6%C4%9Frenci-ders-kay%C4%B1t-diyagram%C4%B1-bed6ce8ccca1?source=rss-84d369a9a7de------2</link>
            <guid isPermaLink="false">https://medium.com/p/bed6ce8ccca1</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Fatih Eren]]></dc:creator>
            <pubDate>Fri, 21 Mar 2025 20:54:42 GMT</pubDate>
            <atom:updated>2025-03-21T20:54:42.600Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Veritabanı Tasarımı: öğrenci ders kayıt diyagramı</strong></p><p><strong>İİD (İlişkisel İlişki Diyagramı), veritabanı tasarımında kullanılan ER (Entity-Relationship) Diagramı veya İlişkisel Model Diyagramı olarak da bilinir. Bu diagram, bir veritabanındaki varlıkları (entity), bu varlıklar arasındaki ilişkileri (relationship) ve her varlığın sahip olduğu nitelikleri (attributes) görselleştirmek için kullanılır.</strong></p><p><strong>İİD (ER Diyagramı) Bileşenleri</strong></p><ol><li><strong>Varlık (Entity): Gerçek dünyadaki nesneleri temsil eder (örneğin: Öğrenci, Sipariş, Müşteri). Dikdörtgen ile gösterilir.</strong></li><li><strong>İlişki (Relationship): Varlıklar arasındaki bağlantıları ifade eder (örneğin: “Öğrenci Kayıt Olur Ders” ilişkisi). Genellikle bir eşkenar dörtgen (rombus) ile gösterilir.</strong></li><li><strong>Nitelikler (Attributes): Varlıkların veya ilişkilerin özellikleridir (örneğin: Öğrenci için Ad, Soyad, Numara). Oval şekillerle gösterilir.</strong></li><li><strong>Birincil Anahtar (Primary Key): Her varlığı benzersiz olarak tanımlayan özelliktir (örneğin: Öğrenci Numarası).</strong></li><li><strong>Çokluk (Cardinality): Varlıklar arasındaki ilişki türünü ifade eder (1–1, 1-N, N-M).</strong></li></ol><p><strong>Örnek Bir ER Diyagramı</strong></p><p><strong>Eğer bir öğrenci ve ders ilişkisini modelleyeceksek:</strong></p><ul><li><strong>Öğrenci (Öğrenci No, Ad, Soyad)</strong></li><li><strong>Ders (Ders Kodu, Ders Adı, Kredi)</strong></li><li><strong>Kayıt Olur (Öğrenci ile Ders arasında ilişki)</strong></li></ul><p><strong>📌 Görselleştirmek için:</strong></p><ul><li><strong>Öğrenci ve Ders varlıkları dikdörtgen olarak çizilir.</strong></li><li><strong>Kayıt Olur ilişkisi rombus içinde belirtilir.</strong></li><li><strong>Öğrenci No ve Ders Kodu birincil anahtar olarak gösterilir.</strong></li><li><strong>Cardinality olarak bir öğrenci birçok derse kayıt olabilir.</strong></li></ul><p><strong>Hangi sistem için ER diyagramı çizmek istiyorsun? Örneğin:</strong></p><ul><li><strong>Öğrenci-Ders Sistemi (Üniversite kayıt sistemi)</strong></li><li><strong>E-Ticaret Sistemi (Müşteri, Sipariş, Ürün ilişkileri)</strong></li><li><strong>Hastane Yönetim Sistemi (Doktor, Hasta, Randevu)</strong></li><li><strong>Aşağıda Öğrenci-Ders Sistemi için bir ER Diyagramı oluşturuyorum. Bu sistemde:</strong></li><li><strong>Öğrenci derslere kayıt olabilir.</strong></li><li><strong>Ders bir veya birden fazla öğrenci tarafından alınabilir.</strong></li><li><strong>Öğretmen dersleri verebilir.</strong></li><li><strong>Kayıt tablosu, öğrencilerin hangi derslere kaydolduğunu takip eder.</strong></li></ul><p><a href="https://lucid.app/lucidchart/9283e970-52c8-4997-842d-88feb105a182/edit?viewport_loc=-11%2C-47%2C1705%2C800%2C0_0&amp;invitationId=inv_0f9886d9-fb15-4369-8576-326761a511fb">https://lucid.app/lucidchart/9283e970-52c8-4997-842d-88feb105a182/edit?viewport_loc=-11%2C-47%2C1705%2C800%2C0_0&amp;invitationId=inv_0f9886d9-fb15-4369-8576-326761a511fb</a></p><p><strong>Yukarıda Öğrenci-Ders ER Diyagramı oluşturuldu. Açıklamalar:</strong></p><ul><li><strong>Student (Öğrenci): Öğrenci kimliği, adı ve e-posta içerir.</strong></li><li><strong>Course (Ders): Ders kimliği, başlık ve kredi bilgilerini içerir.</strong></li><li><strong>Instructor (Öğretmen): Öğretmen kimliği, adı ve e-postası vardır.</strong></li><li><strong>Enrollment (Kayıt): Öğrencilerin ders kayıt bilgilerini saklar.</strong></li><li><strong>Registers (Kayıt Olur): Öğrenci ile Ders arasındaki ilişkiyi gösterir.</strong></li><li><strong>Teaches (Ders Verir): Öğretmen ile Ders arasındaki ilişkiyi ifade eder.</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bed6ce8ccca1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ikili ağaç (Binary Tree) kodlarının sahip olabileceği temel özellikler şunlardır:]]></title>
            <link>https://medium.com/@fatiheren4129/ikili-a%C4%9Fa%C3%A7-binary-tree-kodlar%C4%B1n%C4%B1n-sahip-olabilece%C4%9Fi-temel-%C3%B6zellikler-%C5%9Funlard%C4%B1r-e270db603044?source=rss-84d369a9a7de------2</link>
            <guid isPermaLink="false">https://medium.com/p/e270db603044</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[binary-tree]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Fatih Eren]]></dc:creator>
            <pubDate>Tue, 18 Mar 2025 16:12:23 GMT</pubDate>
            <atom:updated>2025-03-18T16:12:23.900Z</atom:updated>
            <content:encoded><![CDATA[<pre>class EmployeeNode:<br> def __init__(self, name, position):<br> self.name = name<br> self.position = position<br> self.left = None # Sol alt çalışan<br> self.right = None # Sağ alt çalışan<br>def display(self):<br> print(f&quot;{self.position}: {self.name}&quot;)<br> if self.left:<br> self.left.display()<br> if self.right:<br> self.right.display()<br># Şirket yapısını oluşturalım<br>root = EmployeeNode(&quot;Ahmet&quot;, &quot;Genel Müdür&quot;)<br>root.left = EmployeeNode(&quot;Mehmet&quot;, &quot;Müdür Yardımcısı&quot;)<br>root.right = EmployeeNode(&quot;Ayşe&quot;, &quot;Müdür Yardımcısı&quot;)<br>root.left.left = EmployeeNode(&quot;Ali&quot;, &quot;Takım Lideri&quot;)<br>root.left.right = EmployeeNode(&quot;Fatma&quot;, &quot;Takım Lideri&quot;)<br>root.right.left = EmployeeNode(&quot;Zeynep&quot;, &quot;Takım Lideri&quot;)<br>root.right.right = EmployeeNode(&quot;Hasan&quot;, &quot;Takım Lideri&quot;)<br># Şirket yapısını ekrana yazdıralım<br>root.display()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/0*yhThXWsipWsjsPO1.jpg" /></figure><p>ikili ağaç (Binary Tree) kodlarının sahip olabileceği temel özellikler şunlardır:</p><h3>1. Düğümler (Nodes)</h3><ul><li>Her ikili ağaç düğümünün bir <strong>veri (data)</strong> alanı vardır.</li><li>Her düğüm en fazla <strong>iki çocuğa (left, right)</strong> sahip olabilir.</li></ul><h3>2. Kök Düğüm (Root)</h3><ul><li>Ağacın en üstündeki düğümdür.</li><li>Tüm diğer düğümler bu kökten türeyerek ağaç yapısını oluşturur.</li></ul><h3>3. Alt Ağaçlar (Subtrees)</h3><ul><li>Her düğümün <strong>sol alt ağacı (left subtree)</strong> ve <strong>sağ alt ağacı (right subtree)</strong> olabilir.</li><li>Sol ve sağ alt ağaçlar birbirinden bağımsız olarak da birer ikili ağaç olabilir.</li></ul><h3>4. Yaprak Düğümler (Leaf Nodes)</h3><ul><li>Hiç çocuğu olmayan düğümlerdir.</li></ul><h3>5. Dolaşma (Traversal) Yöntemleri</h3><ul><li><strong>Öncelikli dolaşma (Preorder — Root, Left, Right)</strong></li><li><strong>Ortadan dolaşma (Inorder — Left, Root, Right)</strong></li><li><strong>Sonradan dolaşma (Postorder — Left, Right, Root)</strong></li><li><strong>Seviyeye göre dolaşma (Level Order — BFS)</strong></li></ul><h3>6. Derinlik (Depth) ve Yükseklik (Height)</h3><ul><li>Bir düğümün derinliği, kökten o düğüme kadar olan kenar sayısıdır.</li><li>Ağacın yüksekliği, en derindeki yaprak düğüme kadar olan maksimum kenar sayısıdır.</li></ul><h3>7. İkili Arama Ağacı (Binary Search Tree — BST) Özelliği (Eğer bir BST ise)</h3><ul><li>Sol alt ağaçtaki tüm değerler, kök düğümden küçük olmalıdır.</li><li>Sağ alt ağaçtaki tüm değerler, kök düğümden büyük olmalıdır.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e270db603044" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Database Design: A Key to Efficient Data Management]]></title>
            <link>https://medium.com/@fatiheren4129/database-design-a-key-to-efficient-data-management-1b5e3314d168?source=rss-84d369a9a7de------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b5e3314d168</guid>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Fatih Eren]]></dc:creator>
            <pubDate>Fri, 14 Mar 2025 10:01:03 GMT</pubDate>
            <atom:updated>2025-03-14T10:35:22.034Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*FORJDI5vVlf7DA2oXnDodQ@2x.jpeg" /></figure><p>Database design is a crucial step in creating an efficient and scalable system for managing data. A well-structured database ensures data integrity, minimizes redundancy, and enhances performance.</p><p>Key Principles of Database Design</p><p>1.	Normalization</p><p>•	Organizing data into tables to reduce redundancy and improve consistency.</p><p>•	Common normal forms include 1NF, 2NF, and 3NF, each addressing different levels of data structuring.</p><p>2.	Efficient Indexing</p><p>•	Indexes speed up queries by allowing the database engine to find data more quickly.</p><p>•	Proper indexing improves performance but should be balanced to avoid excessive storage use.</p><p>3.	Data Integrity and Constraints</p><p>•	Enforcing primary keys, foreign keys, and constraints ensures data accuracy and consistency.</p><p>•	Constraints like UNIQUE, NOT NULL, and CHECK help maintain data validity.</p><p>4.	Scalability Considerations</p><p>•	Designing for future growth by considering horizontal and vertical scaling strategies.</p><p>•	Using partitioning and replication techniques to enhance performance in large-scale databases.</p><p>5.	Security Measures</p><p>•	Implementing user roles and permissions to protect sensitive data.</p><p>•	Using encryption and regular backups to prevent data loss or breaches.</p><p>A well-designed database not only improves system performance but also simplifies maintenance and future development. By following best practices, businesses can ensure their data is structured efficiently, leading to better decision-making and operational success.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b5e3314d168" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Alışveriş Kuyruğu]]></title>
            <link>https://medium.com/@fatiheren4129/al%C4%B1%C5%9Fveri%C5%9F-kuyru%C4%9Fu-f0cf4bea80df?source=rss-84d369a9a7de------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0cf4bea80df</guid>
            <category><![CDATA[veri]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[trade]]></category>
            <category><![CDATA[yönetim-bilişim]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Fatih Eren]]></dc:creator>
            <pubDate>Tue, 11 Mar 2025 12:05:54 GMT</pubDate>
            <atom:updated>2025-03-11T12:05:54.669Z</atom:updated>
            <content:encoded><![CDATA[<h3>Alışveriş Kuyruğu: Mağaza Yönetim Sistemlerinde FIFO Prensibi</h3><p>Alışveriş yaparken, özellikle yoğun saatlerde mağazalarda sıralar kaçınılmaz olur. Herkesin sırayla ödeme yapması gerektiği bu ortamda, mağaza yönetim sistemleri genellikle <strong>kuyruk</strong> veri yapısını kullanarak, işlemlerin düzenli ve verimli bir şekilde gerçekleşmesini sağlar. Peki, mağaza içindeki alışveriş kuyruğu nasıl işler ve hangi prensiplere dayanır? Bu yazıda, alışveriş kuyruğunun temellerini ve kuyruk veri yapısının nasıl çalıştığını ele alacağız.</p><h3>Kuyruk Veri Yapısı Nedir?</h3><p>Kuyruk, bilgisayar bilimlerinde kullanılan bir veri yapısıdır ve <strong>FIFO</strong> (First In, First Out) prensibine dayanır. Yani, ilk eklenen öğe ilk çıkar. Bu prensip, tıpkı bir alışveriş kuyruğunda olduğu gibi çalışır: Mağazaya ilk gelen müşteri, kasadan ilk işlem yapar.</p><p>Bir kuyruk, genellikle iki işlem sunar:</p><ul><li><strong>Ekleme (Enqueue)</strong>: Kuyruğun sonuna bir öğe ekler.</li><li><strong>Çıkarma (Dequeue)</strong>: Kuyruğun başından bir öğe çıkarır.</li></ul><p>Bu yapı, alışveriş gibi sırayla yapılan işlemlerde mükemmel bir uyum sağlar. Mağazadaki müşteriler sırayla kasaya yönlendirilir ve ilk gelen ilk işlem yapılır.</p><h3>Alışveriş Kuyruğunun Temel Prensipleri</h3><p>Alışveriş kuyruğu, bir mağazada kasada işlemi gerçekleştiren müşterileri sıralamak için kullanılır. Bu kuyruğun işleyişi şu şekilde olur:</p><h4>1. İlk Gelen, İlk İşlem Yapar (FIFO)</h4><p>Alışveriş kuyruğunda, ilk sıraya giren müşteri ilk önce kasada ödeme yapar. Bu, FIFO prensibinin en belirgin örneğidir. Kuyruğun başındaki müşteri, ödeme yapmak için en önce çağrılır.</p><h4>2. Yavaş İlerleyen Kuyruklar</h4><p>Alışveriş yaparken bazen kuyrukların ilerlemesi yavaş olabilir. Örneğin, ödeme sırasında bazı müşteriler ekstra süre harcayabilir ya da kredi kartı geçişleri zaman alabilir. Bu tür durumlar, kuyruğun uzun süreli ve zaman alıcı olmasına neden olabilir. Ancak yine de FIFO prensibi devam eder; bu da bir anlamda “adil” bir sistemdir, çünkü herkes sırayla ödeme yapar.</p><h4>3. Yedek Kuyruklar ve Öncelikli Kuyruklar</h4><p>Büyük mağazalarda birden fazla kasa bulunur. Eğer bir kasada işlem yaparken yoğunluk artarsa, müşteriler başka bir kasaya yönlendirilebilir. Bu durumda, her kasada kendi kuyruğu vardır ve her biri <strong>FIFO</strong> prensibine göre çalışır. Bunun dışında bazı mağazalar, belirli müşterilere (örneğin, hızlı alışveriş yapanlar veya VIP müşteriler) öncelik verebilir. Bu tür öncelikli kuyruklar, müşterinin kasada ne kadar zaman harcayacağına göre sıralama yapabilir.</p><h3>Alışveriş Kuyruğu Sisteminin Avantajları</h3><p>Alışveriş kuyruğu sistemleri, mağaza içinde düzenin sağlanmasında çok önemli bir rol oynar. Bu sistemin bazı önemli avantajlarını şu şekilde sıralayabiliriz:</p><h4>1. Düzen ve Adalet</h4><p>FIFO prensibi, işlemlerin sırayla ve adil bir şekilde yapılmasını sağlar. Her müşteri sıraya girdiğinde eşit bir fırsata sahip olur ve kimse haksız yere öne geçemez.</p><h4>2. Verimli İşlem Yönetimi</h4><p>Alışveriş kuyruğu, kasadaki müşteri işlemlerinin daha verimli bir şekilde gerçekleştirilmesini sağlar. Kasadaki çalışan, kuyruğun başındaki müşteriye odaklanarak daha hızlı işlem yapabilir. Bu da mağazanın daha hızlı işlem yapmasına ve daha fazla müşteri kabul etmesine olanak tanır.</p><h4>3. Müşteri Memnuniyeti</h4><p>Bir kuyruk sisteminin iyi yönetilmesi, müşteri memnuniyetini artırabilir. Düzenli ve hızlı bir alışveriş deneyimi, müşterilerin mağazaya olan bağlılığını artırır. Ayrıca, mağaza içindeki stres seviyelerini azaltarak alışverişi daha keyifli hale getirir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*Cz3moTMrWYctHfHc" /></figure><p>class AlisverisKuyrugu:<br> def __init__(self):<br> self.kuyruk = []</p><p>def ekle(self, musteri_ad):<br> # Müşteriyi sıraya ekler<br> self.kuyruk.append(musteri_ad)<br> print(f”{musteri_ad} kuyruğa eklendi.”)</p><p>def cikart(self):<br> if not self.bos():<br> musteri = self.kuyruk.pop(0) # Kuyruğun başından müşteri çıkar<br> print(f”{musteri} kasadan işlem yapıyor.”)<br> else:<br> print(“Kuyruk boş!”)</p><p>def bos(self):<br> return len(self.kuyruk) == 0 # Kuyruk boş mu?</p><p>def goster(self):<br> if self.bos():<br> print(“Kuyruk boş.”)<br> else:<br> print(“Kuyruktaki müşteriler:”, ‘, ‘.join(self.kuyruk))</p><p># Kuyruk örneği<br>kuyruk = AlisverisKuyrugu()<br>kuyruk.ekle(“Ali”)<br>kuyruk.ekle(“Ayşe”)<br>kuyruk.ekle(“Mehmet”)</p><p># Kuyruğun durumu<br>kuyruk.goster()</p><p># Kasada işlem yapan müşteriyi çıkarma<br>kuyruk.cikart()<br>kuyruk.goster()</p><p># Kuyruğa başka bir müşteri ekleme<br>kuyruk.ekle(“Zeynep”)<br>kuyruk.goster()</p><p># Kasada işlem yapan müşteriyi çıkarma<br>kuyruk.cikart()<br>kuyruk.goster()</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0cf4bea80df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Veri Modelleri: Veriyi Düzenlemenin Temel Yolu]]></title>
            <link>https://medium.com/@fatiheren4129/veri-modelleri-veriyi-d%C3%BCzenlemenin-temel-yolu-dfe73c809983?source=rss-84d369a9a7de------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfe73c809983</guid>
            <category><![CDATA[veri]]></category>
            <category><![CDATA[ağ]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[veri-görselleştirme]]></category>
            <category><![CDATA[veritabanı]]></category>
            <dc:creator><![CDATA[Fatih Eren]]></dc:creator>
            <pubDate>Fri, 07 Mar 2025 11:33:49 GMT</pubDate>
            <atom:updated>2025-03-14T10:36:09.298Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*MSujH3-F9mo4sKvPC6h7Sg@2x.jpeg" /></figure><p>Veri modelleri, verilerin nasıl saklanacağını, düzenleneceğini ve erişileceğini belirleyen yapılar olarak tanımlanır. Doğru bir veri modeli, sistemlerin verimli çalışmasını sağlar ve veri bütünlüğünü korur.</p><p>Başlıca Veri Modeli Türleri</p><p>1.	Hiyerarşik Veri Modeli: Verileri ağaç yapısında düzenler. Katı bir yapıya sahiptir ve her veri öğesi yalnızca bir üst öğeye bağlıdır.</p><p>2.	Ağ (Network) Veri Modeli: Veriler arasındaki daha karmaşık ilişkileri destekler ve bir öğe birden fazla ebeveyne sahip olabilir.</p><p>3.	İlişkisel Veri Modeli: Verileri tablo yapısında düzenler ve SQL ile yönetilir. En yaygın kullanılan modeldir.</p><p>Neden Veri Modelleri Önemlidir?</p><p>•	Veri Bütünlüğü: Hataları ve tutarsızlıkları en aza indirir.</p><p>•	Kolay Erişim: Verilere hızlı ve güvenli erişim sağlar.</p><p>•	Ölçeklenebilirlik: Büyük veri sistemleri için düzenli bir yapı oluşturur.</p><p>Veri modelleri, veri tabanları ve bilgi sistemlerinin temelini oluşturur. Doğru model seçimi, sistemlerin başarısını doğrudan etkiler.</p><p>Kısacası veri modelleri, bilgisayardaki bilgilere daha güvenli ve daha pratik şekilde erişmemizi sağlar diyebiliriz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfe73c809983" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>