- 博客(33)
- 收藏
- 关注

原创 2019 計畫
2019 計畫本科提升 刷 Leetcode 自己寫一個小型 O.S 參與程式競賽 閱讀相關書籍提升能力外語 Cambly 練習英語 TOEIC 題目練習技能 考汽車駕照 學股票投資 \ 理財 烹飪 健身...
2019-02-15 12:15:19
150

原创 2019讀書清單
Python 網站擷取:使用Python(二版) Python數據處理區塊鏈 區塊鏈革命:比特幣技術如何影響貨幣、商業和世界運作職場 原則:生活和工作
2019-01-07 17:20:03
325
原创 Python 流程控制
補充額外流程控制語法range 函數class range( stop )class range( start , stop [ , step ] )>>> list(range(10))[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]>>> list(range(1, 11))[1, 2, 3, 4, 5, 6, 7, 8, 9,...
2019-07-13 22:57:15
188
原创 Calculate GPA using Python
import pandas as pdexcel_path = 'GPA.xlsx'd = pd.read_excel(excel_path, sheetname=None)D:\anacorda\lib\site-packages\pandas\io\excel.py:329: FutureWarning: The `sheetname` keyword is deprecated, u...
2019-07-13 22:55:32
637
原创 Python Class & Inheritance
classclass myclass: i = 12345 def f(self): return 'willy is handsome' #將 myclass 實例化x = myclass()#訪問 class 裡的屬性 & 方法print(x.i)print(x.f())>>> 12345>>> w...
2019-07-13 22:53:03
289
原创 Python 3.7 常用內建函數
abs(x)返回數字的絕對值。參數可以是整數或浮點數。如果參數是一個複數,則返回其大小。如果x定義_abs_(),則 abs(x)返回x._abs_()。int x = -5abs.(x) #5x._abs_() #5all(可迭代的)如果 iterable 的所有元素為真(或迭代器為空),返回True。等價於:def all(iterable): for ele...
2019-07-13 22:50:37
234
原创 Python list
list.append( x )list = ['willy','chang','FJU','Handsome','code','PC','iphone']list.append('genius')list# ['willy', 'chang', 'FJU', 'Handsome', 'code', 'PC', 'iphone', 'genius']del list[]del lis...
2019-07-13 22:49:23
99
原创 自架網站 Day1
申請網域小弟是到 NCTU Domain 申請,這是交大免費提供的平台管理新增 DNSDNS Server IP : 小弟填的是 Github 的 DNS Server IP(192.30.252.153 or 192.30.252.154)TTL ( Time To Live )TTL使用地方TCP/IP 封包表頭佔用了8 bitsDNS 預設TTL=86400秒,...
2019-04-25 17:52:25
218
原创 CPE10400,UVA100
我自己練習的#include <iostream>using namespace std;int collatz(int n,int length);int main(){ int a,b; while(cin>>a>>b) { int Max=0; for(;a<=b;a++) ...
2019-04-22 23:54:45
210
转载 GCD 6種寫法
int GCD(int a, int b) { int d = 1; for (int i = 2; i <= std::min(a, b); ++i) { if (0 == a % i && 0 == b % i) { d = i; } } ...
2019-04-22 12:43:19
588
翻译 Machine Learning Lab Assignment 3
OBJECT OF THIS ASSIGNMENTTo understand how the Backpropagation algorithm learns the weight values for multilayer networks, and understand how a hidden layer (number of hidden nodes) changes the perfo...
2019-03-29 00:34:02
214
转载 PoweLanguage-2行程式碼完成均線交叉策略
均線交叉策略(順勢交易策略),以長、短兩條均線的交叉來買賣步驟一:先把交易邏輯完文字表達出來:做多邏輯 :當短均線(5MA)向上交叉長均線(20MA)多單進場。做空邏輯 :當短均線(5MA)向下交叉長均線(20MA)空單進場。步驟二:思考步驟一的交易邏輯有哪些關鍵字與運算,對應到 PowerLanguage 會用到那些函式或保留字:找出關鍵字 :「均線」、「交叉」、「多單進場」、「...
2019-03-27 11:53:28
255
转载 PowerLanguage K棒的基本資訊 / 常用保留字
保留字簡寫說明OpenOK線開盤價CloseCK線收盤價HighHK線最高價LowLK線最低價VolumeVK線成交量Ticks(無)K線成交量OpenIntOIK線未平倉量DateDK線日期TimeTK線時間研判K線是紅K(開低走高)If close>open then…收...
2019-03-27 11:15:44
404
转载 PowerLanguage 運算與邏輯符號(運算子)
「當K線收盤價大於前根K高點10點以上且收紅K就買進」,寫成PowerLanguageIf Close>High[1]+10 and Close>Open then Buy this Bar at market;數學運篹子 : 跟大部分一樣邏輯運算運算子說明<>不等於cross over向上穿越(黃金交叉),又可以寫成cros...
2019-03-27 10:55:13
416
转载 Web Engineer Introduction
網頁前端工程師技能熟悉 HTML , CSS , Javascript , 以及 jQuery 函式庫熟悉 CSS 框架 , 如 : Bootstrap能夠善用 Javascript 框架 , 建議 Angular.js , React.js 以及 Vue.js能夠活用響應式網頁設計 ( Responsive Web Design ,RWD ) ,做出跨平台 、跨裝置都能完善的...
2019-03-24 15:22:56
160
转载 Computer Science Introduction
前言小弟其實剛上大學時對於本科認識很少,於是只能跟著學校安排一陸跌跌撞撞學習 C,C++,Java 等程式語言。但後來發現程式語言其實很多自己都不認識,甚至很多應用都不認識,所以在這從網上找了些資料整理供大家參考。分類...
2019-03-24 15:22:03
212
翻译 Machine Learning Lab #2
Module 6: ClassificationThe following tutorial contains Python examples for solving classification problems. You should refer to the Chapters 3 and 4 of the “Introduction to Data Mining” book to unde...
2019-03-23 23:32:44
663
原创 Machine Learning Lab Assignment 1
OBJECT OF THE ASSIGNMENT:To solve and understand linear regression problems by using gradient descent algorithm.PROBLEM:Implement linear regression with one or multiple independent variables to pr...
2019-03-18 11:54:19
268
原创 ITSA 71
#include &lt;iostream&gt;#include &lt;vector&gt;#include &lt;algorithm&gt;using namespace std;int main(){ vector&lt;int&gt; S; vector&lt;int&gt; T; S.push_ba
2019-03-14 23:21:11
599
原创 Ch9_Disk_Management
Disk system 組成(一)Disk Component : Sector ⇒ Track ⇒ Cylinder(二)描述磁碟幾何狀況 (C, H, S)C (cylinder) : 幾圈H (head) : 幾面(一片有兩面、最上最下面不算。)S (sector) : 一圈幾格(三)Disk Access Time ElementSeek Time : Move Hea...
2019-02-11 11:23:48
626
原创 Ch8_Virtual _Memory
Virtual Memory重點一 : Virtual Memory重點二 : Demand Paging & Copy on Write重點三 : Effective Access Time & Page fault ratio重點四 : Page Replacement重點五 : Page Replacement algo.FIFOOPTLRULRU近似法...
2019-02-11 11:22:21
1864
原创 Ch7_Memory_Management
Memory Management重點一 : Binding重點二 : Contiguous Memory Allocation重點三 : Fragmentation重點四 : Paging重點五 : Page Table 的製作重點六 : Paging 之相關計算重點七 : Structure of Page Table重點八 : Segment Memory Manageme...
2019-02-11 11:21:37
1673
原创 Ch5_Deadlock
DeadlockDeadlock(一) Def : Deadlock 意思是系統中存在一組 process 陷入互相等待對方所擁有的資源的情況(Circular Waiting),造成所有的 process 無法往下執行,使得 CPU 利用度大幅降低,thoughput下降。(二) Deadlock 發生須符合以下 4 項充要條件(1) Mutual exclusion:某些資源在同一...
2019-02-10 20:10:41
371
原创 Ch7_Search_and_Sort_code
BinarySearch_Iterationvoid BinarySearch_Iteration(A[],int key,int n){ l = 1; //l:left 最左邊 r = n; //r:right 最右邊 while(l<=r) { m = (l + r)/2; switch(Compare(key,A[m])) { case "==" :...
2019-02-10 20:08:39
146
原创 Ch6_Graph
GraphGraphDef相關術語Graph 表示方式Adjacency MatrixAdjacency ListAdjacency MultilistsIncidence Matrix1. Adjacency MatrixDef無向圖 (Symmetric)Q1 : 判斷(i,j)是否存在 : O(1)if(A[i,j]) "存在"else "不...
2019-02-10 20:07:38
238
原创 Ch5_Tree_Code
Preordervoid BinaryTree::Preorder(TreeNode *T){ if (T != NULL) { std::cout << T->Data ; // D Preorder(T->leftchild); // L...
2019-02-10 20:06:57
194
原创 Ch5_Tree_Binary_Tree
TreeDef術語Tree表示方法利用link list表示分析將Tree化成Binary Tree,再予以表示child-sibling方法]括號法表示Binary TreeDefBinary Tree v.s TreeBT の 3個基本定理BT中第i level之最多node數 = 2^(i-1)高度k之BT,其最多node數=(2^k)-1...
2019-02-10 20:03:56
215
原创 Ch6_Memory
Ch6 Memory重點一、Principle of LocalityPinciple of localitytemporal localityspatial localityMemory TechnologySRAMDRAMMagnetic disk重點二、Memory Hierarchy目的Blockterminology (術語)hitmi...
2019-02-10 18:54:20
2399
原创 Ch5_Enhancing Performance with Pipelining
Enhancing Performance with Pipelining重點一:Pipeline重點二:Pipeline datapath重點三:Pipeline Control Unit重點四:Pipeline hazard重點五:Hazard Solution重點六:Data hazard重點七:Data dependency重點八:Control hazard (Bran...
2019-02-10 18:53:49
1128
原创 Ch4_The_Processor_Datapath_Control
抽象化設計SpecificationInstruction setMemory Access : lw,swArithmetic Logic : add,sub,and,or,sltFlow Contrl : beq,jMachines (3個)Single Cycle Machine(CPI=1)[Datapath + Control Unit]指令執行需在...
2019-02-10 18:51:57
482
原创 Ch3_CPU_Performance
CPU Exec Time 公式 (越低越好)Clock Cycle 公式CPI 公式軟體如何影響效能MIPS 公式 (越高越好)MIPS的三個問題沒有把每一指令的能力考慮進來同一台電腦不同程式,MIPS有可能不同可能跟效能成反比Amdahl’s 定律Speedup公式改善較常出現部分的最佳化較有效效能總評算術平均 (Arithmet...
2019-02-10 18:51:05
288
原创 100年交大資料結構與演算法
求 function NCTU 的 Time Complexityvoid CS(int *a,int root,int n){ int e=a[root]; for(int j=2*root;j&amp;amp;amp;amp;amp;amp;amp;lt;=n;j*=2) { if(j
2019-02-03 20:23:16
770
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人