Beethovenjoker

@Beethovenjoker

早安

Joined on Nov 7, 2022

  • contributed by: <Beethovenjoker> (章元豪) Github 2025q1 第 3 週測驗題 測驗 1 /* ceiling division without needing floating-point operations. */ static size_t ceil_div(size_t n, size_t d) { return (n+d-1)/d; } 取上界的除法,可以將情況歸納成:
     Like  Bookmark
  • contributed by: <Beethovenjoker> (章元豪) Github 2025q1 第 1 週測驗題 指標的指標 指標的指標(pointer to pointer),目的是讓插入新節點時的程式碼變得簡潔且不必特別處理串列頭或尾的特殊情況。 void list_insert_before(list_t *list, list_item_t *before, list_item_t *item) { list_item_t **p; for (p = &l->head; *p != before; p = &(*p)->next) ;
     Like  Bookmark
  • Owner:櫻木滑倒-Sakuragi Partner:魯智深-NatureLover Comment 「欣梅爾-Azure」: 他評 01 「臻饗碧耶-Chaoxiangbiye」: 他評 01 「錫禁評-Pooh」: 他評 03 「樂瑟-Trash」: 他評 02 「曹孟德-Aqua」: 他評 03
     Like  Bookmark
  • 櫻木滑倒 Sakuragi 🕵️‍♂️:Interviewer 🕶️:Interviewee 模擬面試錄影1(漢) 模擬面試錄影2(漢) 模擬面試錄影3(英) 69. Sqrt(x) : Easy
     Like  Bookmark
  • contributed by: <Beethovenjoker> (章元豪) Github Linux 排程器研究 vax-r :::spoiler Detail Core Concept Schedulable Unit 在 Linux Kernel 中,CPU 排程的最基本單位是 task,更準確的說法是 sched_entity。 Task 由 CPU 負責執行,CPU scheduler 需要在適當的時間挑選合適的 task 執行。
     Like  Bookmark
  • contributed by: <Beethovenjoker> (章元豪) Github 作業要求 在 GitHub 上 fork lab0-c。 依據上述指示著手修改 queue.[ch] 和連帶的檔案,測試後用 Git 管理各項修改,要能滿足 $ make test 自動評分系統的所有項目。 研讀 Linux 核心原始程式碼的 lib/list_sort.c 並嘗試引入到 lab0-c 專案,比較你自己實作的 merge sort 和 Linux 核心程式碼之間效能落差,也該嘗試改進針對鏈結串列排序實作的效能。 在 qtest 提供新的命令 shuffle,允許藉由 Fisher–Yates shuffle 演算法,對佇列中所有節點進行洗牌 (shuffle) 操作,需要以統計的原理來分析你的實作,探究洗牌的「亂度」。 在 qtest 中執行 option entropy 1 並搭配 ih RAND 10 一類的命令,觀察亂數字串的分布,並運用「資訊與熵互補,資訊就是負熵」的觀念,設計一組新的命令或選項,得以在 qtest切換不同的 PRNG 的實作 (可選定 Xorshift),搭配統計分析工具,比較亂數產生器 (如 Xorshift vs. 內建) 的品質。 研讀論文〈Dude, is my code constant time?〉,解釋本程式的 "simulation" 模式是如何透過以實驗而非理論分析,達到驗證時間複雜度,需要解釋 Student's t-distribution 及程式實作的原理。 指出現有程式的缺陷或者可改進之處 (例如更全面地使用 Linux 核心風格的鏈結串列 API),嘗試實作並提交 pull request。
     Like  Bookmark
  • original contributed by : <adam-maj>、<ashaltu>、<eltociear>、<xianbaoqian> extended contributed by: <Beethovenjoker> (章元豪) Jserv Note Next Step [ ] Explore the behavior the tiny-gpu. [ ] Optimize control flow and use of registers to improve cycle time. GPU Architecture GPU
     Like  Bookmark
  • Resume /l、 (゚、 。 7 ⠀ l、゙ ~ヽ   じしf_, )ノ Education Background 國立中央大學資訊電機學院學士班 (主修資訊工程) 國立成功大學電機工程研究所 (資訊工程組)
     Like  Bookmark
  • Owner: 櫻木滑倒-Sakuragi Partner: 黑洞-Blackhole Coding interview 146.LRU Cache (Medium) 🕵️‍♂️:Interviewer(黑洞-Blackhole) 🕶️:Interviewee (櫻木滑倒-Sakuragi) 模擬面試錄影(英) 🕵️‍♂️: Hello, I am representing MediaTek.
     Like  Bookmark
  • 📖 NOTEBOOK Computer Oraganization Single-Cycle-CPU (RV32I) 5-Stages-Pipelined-CPU (RV32I) Computer Architecture Assignment1: RISC-V Assembly and Instruction Pipeline Assignment2: Artificial Neural Network Assignment3: Construct a RISC-V CPU with Chisel
     Like  Bookmark
  • contributed by: <Beethovenjoker> (章元豪) Github Warning :::info I use ChatGPT 4.0 to enhance the expressiveness of my English and to add clear, insightful comments to my code. ::: Part A : Mathematical Functions Task 0: Multiply Extract their signsfirst.
     Like  Bookmark
  • contributed by: <Beethovenjoker> (章元豪) Github Development Objectives of this Project Implementation in Chisel. RV32I instruction set support. Execution of programs compiled from the C programming language. Successful completion of RISC-V Architectural Tests, also known as riscv-arch-test. Prerequisites Please refer to Lab3: Construct a RISC-V CPU with Chisel by Professor Ching-Chun Huang.
     Like  Bookmark
  • contributed by: <Beethovenjoker> (章元豪) Github Quiz1: Problem C 1. fabsf: The function fabsf(), which quickly calculates the absolute value of a float, operates by manipulating the binary representation of the floating-point number rather than using traditional conditional checks. C code for fabsf static inline float fabsf(float x) { uint32_t i = *(uint32_t *)&x; // Read the bits of the float into an integer i &= 0x7FFFFFFF; // Clear the sign bit to get the absolute value
     Like  Bookmark