星期六, 9月 27, 2025

晚餐接機大作戰: Part II A* (Thanksgiving)

 Scheduling Parallelism in Plans problem  (Eng) (from source)




Generate Python code base 

using such as A*, BFS, Dijkstra, ...

or let AI make its decision



To run Python, use Google Colab





Visualize results as Python can generate complex states (步驟參考)





Claude Python Colab Visualization,Python  Colab MIL Colab Viz

Gemini 2.5 Pro & Grok 4 Colab


最佳解 最高的平行度,throughput 高,idle time 減少,critical path 短




次佳解 因為James 似乎太奔波了,剛從機場回來,馬上得回去剛才的機場接人
在工廠等於也就是機器人來回運動,但是沒有產出




次佳解 Sarah 好忙,先烤火雞,換手給機場回來的 James,然後去機場接Emily,James 接手烤火雞,idle time 過長,而且造成沒有必要的 switchover 

Merge diagrams in a synchronized dashboard

 狀態圖(State Diagram) 









state diagram with aligned timeline





State diagram with sync timeline (map version)






看板圖 (Kanban)


 (interactive timeline)



流程圖(Flow chart)



星期三, 9月 24, 2025

EX#3 AI for Constrained Optimization

 課堂練習 

Deadline: This Saturday at 23:59

Send all the share links to  me chang212@gmail.com by email with subject EX#3  [your id, your name]




搶救感恩節晚餐大作戰講義 題目 


Plan a feasible schedule. Then verify the schedule. Then visualize your results. 



繳交範例

Claude validationreasoning*, Viz





檢查你的感恩節計畫是否正確

Use validator to check up the plan






如果你希望驗證結果可輸出為app
1. 先進入 validator
2. 按下右上方 customize 鍵
3. 接下來的操作步驟
4. 結果輸出為app





可使用狀態圖(State Diagram),看板圖 (Dashboard), 流程圖(Flow chart) 進行視覺化






 (interactive timeline)








Hint 
優化解可以達成所有人四點前到家

Hint
如果你要使用現成版型(artifact type) 做行程視覺化,步驟如下
0 找到版型程式  (工程圖下方連結)
1 按介面右上方 customize  鍵
2. 輸入你的文字版時間排程
3 得到專業工程圖
 



2. Try smart search. Prompt AI models to generate A* search Algorithm


星期四, 9月 18, 2025

推理模式研修題

Devise a strategy for the dog in the picture to retrieve its ball that fell into the pond without getting its body wet, with no humans nearby to help."

This is a problem-solving or creative thinking exercise asking someone to come up with a plan for how a dog could get its ball back from water without getting wet and without human assistance.

Animate your strategy in svg or in 3d. 


1. 方法必須合乎常理(例如狗不能飛,不會使用打撈網)

2. 需排除幻覺,不可使用畫面中不存在的器物

3. 答案必須滿足題目中的規定,例如狗在完成目標取回球的過程中都不可弄濕自己

3. 答案除了文字敘述,必須搭配動畫呈現(漫畫,影片亦可)



 LLM 有兩種模式 推理 vs. 直覺,你用對了嗎?


星期三, 9月 17, 2025

晚餐接機大作戰 (Thanksgiving Dinner Scheduling)

Motivation

Logic Circuit Design


TSMC Fab


晚餐接機大作戰Scheduling Parallelism in Plans problem  (Eng) (from source)






Comparison of LLMs
Claude Opus 4.6 optimal (visualizing how AI thinks)
Gemini 3.0 Pro 推理,optimal
ChatGPT 5, end results 流程圖  feasible, not optimal,
Grok 4 ,end results 流程圖 *



Visualization

location-based time-evolving diagram (space-temporal transformation ), minimalist


Advanced visualization with backtrack included and transit animated (Data visualization techniques) 






______________________________________
history
Claude Sonnet 4 推理模式 (extended thinking),流程圖  no feasible,






EX#2 Reasoning vs. non-reasoning AI

本次作業講義


建議工具

使用 Claude Sonnet 4

使用 ChatGPT 5

使用 Gemini 2.5 Pro 免費額度最高 1M tokens

使用 Grok 4



 課堂練習 

Deadline: This Saturday at 23:59

Send all the share links to  me chang212@gmail.com by email with subject EX#2  [your id, your name]

How to share a Claude link

How to share a ChatGPT link

How to share a Grok link

How to share Gemini Link


 

1. Given 1,2,3,4,5,6 can you give an equation that equals -38?  If you got a correct answer, ask how AI made it. If not, ask AI why it failed. 請分析AI解題策略(推理,直覺,蠻力,內建程式演算...),如果有錯誤,原因是什麼?


3. 計算面積




計算面積這題並沒有辦法靠內容比對這種直觀法就能得到答案,推理模型會比較適合

建議使用各種AI(特別是有推理能力的)

可考慮使用 Claude 4 Sonnet (Extended Mode 推理模式), Grok 4或 ChatGPT 5, Gemini 2.5 Pro


4. 想挑戰難的嗎 Challenge to LLM





Reasoning vs. non-reasoning AI





 AI的能力來自哪裡?

 

Given 19, 36, 55, 7, can you give an equation that equals 622?


educated guess ChatGPT 5 silde

Brute force but fails ChatGPT 5 slide

continued from the above Program execution ChatGPT 5 slide


直覺 Claude Sonnet 4 slide

推理模式 Claude Sonnet 4  Extended Thinking yet another, slide


推理模式Gemini 2.5 Pro 推理模式(參看下方註解) slide


直覺模式 Hand trial-and-error Grok 4 slide 



化繁為簡 思維鏈 (chain of thought)

深謀遠慮 RL(reinforced learning)




Given 1,2,3,4,5,6 can you give an equation that equals -38?


直覺模式 Hand trial-and-error brute force and fails ChatGPT 5 slide

Grok 4  直覺,hand trial-and-error, too many errors, stop

Sonnet 4 (直覺) hand trial-and-error, too many errors, stop

ChatGPT 5 直覺 hand trial-and-error, deemed nontrivial, stop and ask for brute force

Sonnet 4 推理模式slide

Gemini 2.5 Pro *

presentation resources

星期三, 9月 10, 2025

EX#1 電子學 AI 助理

  AI for solving amplifier electronics (課堂講義內有參考解答)


 建議工具

使用 Claude Sonnet 4.5

使用 ChatGPT 5

使用 Gemini 3 Pro 免費額度最高 1M tokens

使用 Grok 4



 課堂練習 

Deadline: This Saturday at 23:59

Send all the share links to  me chang212@gmail.com by email with subject EX#1  [your id, your name]

How to share a Claude link

How to share a ChatGPT link

How to share a Grok link

How to share Gemini Link



1. Solve for the gain. 

2. Solve for the gain. 


















3. solve for the gain


 (source)






以上參考答案
(1) -4 (2) 8513 (3) -165 答案誤差10%以內都是正常的


4. Design a two stage amplifier using bjt.

the first stage is class A. the second is class AB. freq response cut off at 10Hz and 25 KHz

 






不是主修電子工程的同學,可以練習以下問題




share Claude

 




Claude man in the loop
Gemini 2.5 Pro got it right twice in a row

為什麼我的AI跟你不一樣

美學與完成度



星期五, 8月 29, 2025

Challenge to LLM


share Claude man in the loop


計算面積這題並沒有辦法靠內容比對這種直觀法就能得到答案,推理模型會比較適合


建議使用各種AI(特別是有推理能力的)

可考慮使用 Claude 4.5 Sonnet (Extended Mode 推理模式), Grok 4或 ChatGPT 5, Gemini 2.5 Pro



 




Claude man in the loop
Gemini 2.5 Pro got it right twice in a row


星期四, 7月 24, 2025

EX#16 Recover systems from documentation

 1. You must implement the system from scratch based on the paper.

2. Do two of the following problems.













Agility Training (artifact, 2d version), paper





Agility Training (share, 3d version), paper