author
Publish Date / Update Date

Bellman-Ford Algorithm

To address the limitation in Dijkstra's Algorithm, which cannot handle paths with **negative** edge weights, the Bellman-Ford Algorithm was developed. The Bellman-Ford Algorithm performs $V - 1$ relaxation operations for $V$ nodes, repeatedly relaxing all edges to continuously improve and find the shortest paths.

Image Compression Tool

在平時建立網站頁面時,我們會發現有時候有些頁面需要讀取一段時間才能出現,而有些頁面卻沒有。經過比較不同網頁後得出一個結論,網頁內的圖片如果大小過大,會造成網頁讀取速度較慢,因此萌生出要找到一款能夠壓縮目前網站目錄下所有圖片工具。但找來找去,網路上都沒有找到合適的應用程式,最後決定自己製作一款能夠壓縮所有圖片的程式。

K-Means Clustering

K-means clustering, often referred to in Chinese as the "k-means algorithm", is a method used to partition $n$ data points into $k$ clusters. Each point is assigned to the cluster whose center (centroid) is closest to it.

About Greedy Algorithm

The **Greedy Algorithm** is an approach that solves problems by **choosing the option that appears most favorable at each step**. It makes simple and intuitive decisions based on the **locally optimal choice** among all available options at the moment, with the expectation that these local choices will accumulate into a globally optimal solution, continuing this process until a termination condition is met.