NachOS README
source link:https://homes.cs.washington.edu/~tom/nachos/README
NachOS README
This README file describes the Nachos release. Comments, questions,
and bug reports are always welcome, and can be directed to
nachos@cs.berkeley.edu (an alias for me, Tom Anderson), or
to the alt.os.nachos newsgroup.
Nachos is instructional software for teaching undergraduate, and potentially
資料結構與演算法-前言
筆記頁面:資料結構與演算法
資料結構與演算法在計算機科學是基礎中的基礎,本人希望可以透過練習撰寫筆記的方式,來練習這些學習到的知識,也藉此提升對於知識表達的能力。
參考書目
這系列的筆記會採用C/C++進行程式碼的實作,並會參考以下參考書目:
Fundamentals of Data Structures in C
Introduction to Algorithm
資料結構與演算法—插入排序 Insertion Sort
筆記頁面:資料結構與演算法
Pseudo Code
INSERTION-SORT(A,n)
1for i = 2 to n
2 key= A [i]
3 // Insert A[i] into the sorted subarray A[1:i-1]
4 j = i - 1
交換兩個變數中的值 swap()
變數在儲存資料的時候,我們可以把變數想像為一個容器,而容器以外的空間完全沒有辦法儲存資料。所以在交換倆變數的值時,兩個變數是不夠的,必須得有第三個變數來儲存資料。
解說
而交換兩個變數的值,就好比要交換兩個杯子不同顏色的水,其中 A 杯子裝有紅色的水,B 杯子裝有藍色的水。
swap.drawio
我們沒有辦法冒然的將 A 的水倒進 B 裡面,再將 B 的水倒進 A 裡面,這會導致兩個杯子的水都是紫色的。
Table of Contents
原文連結:https://www.bbc.com/news/articles/c1335nj316lo
新聞+註釋
Bot or not: Are fake accounts swaying voters towards Reform UK?
機器人與否:假帳號是否動搖了選民對英國改革黨的認同?
6/24
By Marianna Spring, Disinformation and social media correspondent