<?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 Eggy  on Medium]]></title>
        <description><![CDATA[Stories by Eggy  on Medium]]></description>
        <link>https://medium.com/@yfes40828y?source=rss-13bda02f818c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*m3PArxNpvRQ7qlEW</url>
            <title>Stories by Eggy  on Medium</title>
            <link>https://medium.com/@yfes40828y?source=rss-13bda02f818c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:04:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yfes40828y/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[Tree and Binary Tree]]></title>
            <link>https://medium.com/@yfes40828y/tree-and-bt-f0320d777a0a?source=rss-13bda02f818c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0320d777a0a</guid>
            <dc:creator><![CDATA[Eggy ]]></dc:creator>
            <pubDate>Sun, 22 Dec 2024 16:16:25 GMT</pubDate>
            <atom:updated>2024-12-22T16:18:43.567Z</atom:updated>
            <content:encoded><![CDATA[<p>差別在degree之外，樹不可為空 BT可為空</p><p>討論樹想到：BT高度log(n+1)取上限</p><p>(n為節點數)</p><p>儲存方式link list / array 的差別</p><p>（link list適合skewed BT)</p><p>-</p><p>BT 追蹤</p><p>前序 中序 後序=&gt;想到遞迴</p><p>畫圖出來追蹤，程式碼用推理的就好</p><p>BT樹種</p><p>Full BT 就滿的</p><p>Complete BT就按照順序的</p><p>-</p><p>BT其它</p><p>n0=n2+1</p><p>（n0+n1+n2=all)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0320d777a0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Queue在array的情況]]></title>
            <link>https://medium.com/@yfes40828y/queue%E5%9C%A8array%E7%9A%84%E6%83%85%E6%B3%81-9903c136c3ca?source=rss-13bda02f818c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9903c136c3ca</guid>
            <dc:creator><![CDATA[Eggy ]]></dc:creator>
            <pubDate>Fri, 20 Dec 2024 15:43:48 GMT</pubDate>
            <atom:updated>2024-12-20T15:43:48.070Z</atom:updated>
            <content:encoded><![CDATA[<h2>Queue在Array的新增刪除</h2><p>在Array的時候，front是指向第一個資料的前一格</p><p>當rear=n-1且front=-1，代表Array全滿</p><p>如果沒有滿 可以把所有的資料往前挪 front+1格（時間複雜度O(n)</p><p>-</p><p>改良-環狀陣列：</p><p>總共是0….n-1之循環，一開始rear, front指向0</p><h4>Add=&gt;O(1)</h4><p>Rear前進</p><p>如果 rear=front 代表滿了，rear=rear-1modn</p><p>沒滿的話Q[rear]=item</p><h4>Delete=&gt;O(1)</h4><p>如果rear=front 是空</p><p>Else (front=front+1 modn</p><p>item=Q[front] )</p><p>不管如何 環狀只會使用到n-1格</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9903c136c3ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Queue在link list的新增刪除]]></title>
            <link>https://medium.com/@yfes40828y/queue%E5%9C%A8link-list%E7%9A%84%E6%96%B0%E5%A2%9E%E5%88%AA%E9%99%A4-6e4752168047?source=rss-13bda02f818c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e4752168047</guid>
            <dc:creator><![CDATA[Eggy ]]></dc:creator>
            <pubDate>Thu, 19 Dec 2024 15:45:02 GMT</pubDate>
            <atom:updated>2024-12-19T15:45:02.694Z</atom:updated>
            <content:encoded><![CDATA[<p>Queue 在使用link list的時候</p><p>會有指標rear front兩個指標</p><h4>新增add：</h4><p>判斷現在queue是不是空</p><p>如果是空 那（新增新節點、front,rear指向新節點）</p><p>不是的話</p><p>1.新增一個節點</p><p>節點data放item, 節點指向nil</p><p>2.rear的link指向新節點</p><p>3.令新節點為rear</p><h4>刪除delete：</h4><p>1.令front 叫做p</p><p>item=p-&gt;data(儲存起來！）</p><p>Front 指定為 front-&gt;link</p><p>2.REX(p)</p><p>3.如果front指向nil</p><p>那rear也要指向nil</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e4752168047" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[複習link list]]></title>
            <link>https://medium.com/@yfes40828y/%E8%A4%87%E7%BF%92link-list-447b7f30804c?source=rss-13bda02f818c------2</link>
            <guid isPermaLink="false">https://medium.com/p/447b7f30804c</guid>
            <dc:creator><![CDATA[Eggy ]]></dc:creator>
            <pubDate>Wed, 18 Dec 2024 09:33:17 GMT</pubDate>
            <atom:updated>2024-12-18T09:34:00.112Z</atom:updated>
            <content:encoded><![CDATA[<h2>複習Link list</h2><p>*腦中浮現怎麼處理</p><p>-單向鏈結：</p><p>新增O(1)</p><p>刪除O(1)</p><p>回收整個串列O(n)</p><p>計算長度：O(n)</p><p>合併：O(n)看跑哪一個</p><p>Invert-&gt;??</p><p>-環狀：</p><p>回收整個串列O(1)</p><p>計算長度：O(n)</p><p>合併：O(1)改變指標方向而已</p><p>-雙向鏈結：</p><p>新增O(1)</p><p>刪除O(1)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=447b7f30804c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stack的應用]]></title>
            <link>https://medium.com/@yfes40828y/stack%E7%9A%84%E6%87%89%E7%94%A8-8ddbc73b40ec?source=rss-13bda02f818c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ddbc73b40ec</guid>
            <dc:creator><![CDATA[Eggy ]]></dc:creator>
            <pubDate>Wed, 18 Dec 2024 09:32:20 GMT</pubDate>
            <atom:updated>2024-12-18T09:32:20.104Z</atom:updated>
            <content:encoded><![CDATA[<p>-前序 中序 後序 之間的轉換</p><p>熟悉運算子的優先順序：</p><p>冪次 乘除加減 關係 邏輯</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EunJ4avhPw0We7BaxyKYdw@2x.jpeg" /></figure><p>演算法：</p><p>-中序轉後序</p><p>（在stack外優先權最高 在stack內優先權最低</p><p>如果運算子大於stack裡面的 那就放進去</p><p>如果小等於 那就先把裡面的pop出來 直到小於</p><p>-後序的計算</p><p>運算元放進去</p><p>遇到運算子 pop出來 計算好之後push回堆疊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ddbc73b40ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Array計算]]></title>
            <link>https://medium.com/@yfes40828y/array%E8%A8%88%E7%AE%97-f6de5beafaa8?source=rss-13bda02f818c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6de5beafaa8</guid>
            <dc:creator><![CDATA[Eggy ]]></dc:creator>
            <pubDate>Fri, 06 Dec 2024 09:24:24 GMT</pubDate>
            <atom:updated>2024-12-06T09:24:24.297Z</atom:updated>
            <content:encoded><![CDATA[<h2>Array 計算</h2><p>二維</p><p>就找到lo(初始位置）、d(大小)、m*n</p><p>Row major and column major</p><h4>畫圖推理！</h4><p>-</p><p>如果是三維以上 就是先列出式子</p><p>然後</p><p>A[i,j,k]</p><p>Row major:一第一個維度出發 由左向右看</p><p>A[i,j,k]=lo+[(i-1)*u2*u3+(j-1)*u3+(k-1)]*d</p><p>Column major:以最後一個維度出發 由右至左看</p><p>A[i,j,k]=lo+[(i-1)+(j-1)*u1+(k-1)*u1*u2]*d</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6de5beafaa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[時間複雜度 公式]]></title>
            <link>https://medium.com/@yfes40828y/%E6%99%82%E9%96%93%E8%A4%87%E9%9B%9C%E5%BA%A6-%E5%85%AC%E5%BC%8F-d52b437a3763?source=rss-13bda02f818c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d52b437a3763</guid>
            <dc:creator><![CDATA[Eggy ]]></dc:creator>
            <pubDate>Thu, 05 Dec 2024 13:42:27 GMT</pubDate>
            <atom:updated>2024-12-05T13:42:27.038Z</atom:updated>
            <content:encoded><![CDATA[<p>資結 時間複雜度</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tn9QEQ5hVpF61xd6u6jcSw@2x.jpeg" /></figure><p>（附圖）主要就是比較三種case</p><p>看哪一邊比較大 最後結果傾向那樣</p><p>-快速跑過經典時間複雜度題</p><p>河內塔、最大公因數、排列組合</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d52b437a3763" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[考研日記2024/11/24]]></title>
            <link>https://medium.com/@yfes40828y/%E8%80%83%E7%A0%94%E6%97%A5%E8%A8%982024-11-24-bc5f2eb96dd8?source=rss-13bda02f818c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc5f2eb96dd8</guid>
            <dc:creator><![CDATA[Eggy ]]></dc:creator>
            <pubDate>Sun, 24 Nov 2024 14:00:06 GMT</pubDate>
            <atom:updated>2024-11-24T14:00:06.289Z</atom:updated>
            <content:encoded><![CDATA[<p>Process communication 程式之間的溝通</p><p>Message passing v.s. Share memory</p><p>Share memory因為共享變數 有可能導致race condition=&gt; 解決方式：critical section design 同步存取機制</p><p>-critical section design的三條件：</p><p>Mutual exclusion, progress, bounded waiting</p><p>複習 演算法 P/NP/NP-hard/NPC</p><p>P(Polynomial Time):存在多項式時間複雜度的演算法可以解決問題</p><p>NP(nondeterministic polynomial time):存在多項式時間複雜度的演算法可以驗證問題</p><h3>=&gt;是P必為NP</h3><p>NP-hard:所有NP問題都可以歸約為NP-hard問題</p><p>NP Complete:所有NP問題都可以化作NPC問題 且可以用多項式複雜度驗證</p><h3>NPC=NP-hard 且NP</h3><p>腦中浮現兩張圖 分別是NP是否=P</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc5f2eb96dd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[考研日記2024/11/22]]></title>
            <link>https://medium.com/@yfes40828y/%E8%80%83%E7%A0%94%E6%97%A5%E8%A8%982024-11-22-28a34b1da367?source=rss-13bda02f818c------2</link>
            <guid isPermaLink="false">https://medium.com/p/28a34b1da367</guid>
            <dc:creator><![CDATA[Eggy ]]></dc:creator>
            <pubDate>Fri, 22 Nov 2024 11:34:17 GMT</pubDate>
            <atom:updated>2024-11-22T11:34:17.170Z</atom:updated>
            <content:encoded><![CDATA[<p>-要記得報名考試！</p><p>Deadlock detection and recovery</p><p>Detection:其實就是safety algo.</p><p>Recovery:終止一個或多個process或是rollback, 會考慮資源配置圖（有cycle？有的話得以解套嗎？）</p><p>-</p><p>來讀資料結構了！</p><p>Function傳遞參數(parameter passing)的方法：</p><p>-call by address:主函式跟副函式有同樣的存取位子，因此數值會改變！binding 最快</p><p>-call by value:傳遞參數數值，因為子函數位置另外儲存，因此參數不會改變</p><p>-call by name:傳遞參數的名字，子函數的位子相同 因此有side effect, 速度沒有call by reference 慢</p><p>-</p><p>遞迴</p><p>Direct recursion：直接呼叫自己</p><p>Indirect recursion:呼叫另一個函式 間接再呼叫到自己</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28a34b1da367" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[考研日記2024/11/18]]></title>
            <link>https://medium.com/@yfes40828y/%E8%80%83%E7%A0%94%E6%97%A5%E8%A8%982024-11-18-ad190cca04e3?source=rss-13bda02f818c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad190cca04e3</guid>
            <dc:creator><![CDATA[Eggy ]]></dc:creator>
            <pubDate>Mon, 18 Nov 2024 14:26:51 GMT</pubDate>
            <atom:updated>2024-11-18T14:26:51.721Z</atom:updated>
            <content:encoded><![CDATA[<p>Deadlock Avoidance</p><p>Bankers algo.</p><p>1.request &lt;need</p><p>2.request&lt;available</p><p>3.試算新的資源配置</p><p>Available （減少</p><p>Need（減少</p><p>Allocation (新增</p><p>4.跑safety algo.</p><p>-找出available &gt;need的</p><p>-work(available)=work+allocation</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad190cca04e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>