原題與已知條件
完整有限無向無loop簡單圖與原圖edge indexes。操作=matching-matched-vertices;資料={"n":6,"edges":[[0,1],[0,2],[1,2],[2,3]],"matching":[0,3]}。請依 [matching_edges,matched_vertices,unmatched_vertices,valid_matching] 欄序回答。
G001 — 完整有限無向無loop簡單圖與原圖edge indexes。操作=matching-matched-vertices;資料={"n":6,"edges":[[0,1],[0,2],[1,2],[2,3]],"matching":[0,3]}。請依 [matching_edges,matched_vertices,unmatched_vertices,valid_matching] 欄序回答。
逐步推導
S001 · implies
操作前
complete original carrier Fin(6);original edge list=[[0, 1], [0, 2], [1, 2], [2, 3]]
操作後
input ALREADY has increasing endpoints and lexicographic edge order;loop-free unique edges=是;whole carrier=[0, 1, 2, 3, 4, 5]
條件:無
這一題族要求原表已正規排序,未排序或反向重複應拒絕,不能套前輪會自動正規化的guard。邊索引綁定此原圖,完整載體保留孤立點。
步驟識別與依賴
規則:matching_original_canonical_graph_not_silent_normalization · 依賴:G001
S002 · implies
操作前
matching:raw original-edge indices=[0, 3];original canonical edges=[[0, 1], [0, 2], [1, 2], [2, 3]]
操作後
sorted duplicate-free selected indices=[0, 3];selected edges=[[0, 1], [2, 3]]
條件:無
排序選取索引但拒重複,只選原邊;空matching合法。不從端點重建新邊或把原索引當頂點標籤。
步驟識別與依賴
規則:matching_selected_original_edge_indexes_not_new_edges · 依賴:G001, S001
S003 · calculation
操作前
matching edge0 endpoint0 incidence := sum(0, 1)
操作後
matching edge0 endpoint0 incidence = 1
條件:無
依原始欄位角色與已核中間量精確計算,保留分母、正負號、索引及完整載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S002
S004 · calculation
操作前
matching edge0 endpoint1 incidence := sum(0, 1)
操作後
matching edge0 endpoint1 incidence = 1
條件:無
依原始欄位角色與已核中間量精確計算,保留分母、正負號、索引及完整載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S003
S005 · implies
操作前
matching:selected original edge index=0;edge=[0, 1]
操作後
cumulative endpoint counts in first-seen order=[[0, 1], [1, 1]]
條件:無
每個被選邊的兩端各加一次,計數大於1才是端點衝突;保留首次遇到端點的順序,不能為了好看另排序衝突輸出。
步驟識別與依賴
規則:matching_every_selected_edge_endpoint_incidence · 依賴:G001, S004
S006 · calculation
操作前
matching edge3 endpoint2 incidence := sum(0, 1)
操作後
matching edge3 endpoint2 incidence = 1
條件:無
依原始欄位角色與已核中間量精確計算,保留分母、正負號、索引及完整載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S005
S007 · calculation
操作前
matching edge3 endpoint3 incidence := sum(0, 1)
操作後
matching edge3 endpoint3 incidence = 1
條件:無
依原始欄位角色與已核中間量精確計算,保留分母、正負號、索引及完整載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S006
S008 · implies
操作前
matching:selected original edge index=3;edge=[2, 3]
操作後
cumulative endpoint counts in first-seen order=[[0, 1], [1, 1], [2, 1], [3, 1]]
條件:無
每個被選邊的兩端各加一次,計數大於1才是端點衝突;保留首次遇到端點的順序,不能為了好看另排序衝突輸出。
步驟識別與依賴
規則:matching_every_selected_edge_endpoint_incidence · 依賴:G001, S007
S009 · implies
操作前
matching:final first-seen endpoint counts=[[0, 1], [1, 1], [2, 1], [3, 1]]
操作後
conflicting vertices first-seen=[];matched vertices sorted=[0, 1, 2, 3];matching valid=是
條件:無
兩兩端點不交才為matching;即使不合法邊族仍可能覆蓋很多頂點,覆蓋數不替代有效性,更不證maximal、maximum或perfect。
步驟識別與依賴
規則:matching_validity_separate_from_coverage_or_optimality · 依賴:G001, S008
S010 · implies
操作前
whole original vertex carrier=[0, 1, 2, 3, 4, 5];sorted matched vertices=[0, 1, 2, 3]
操作後
sorted unmatched complement=[4, 5];matching validity remains=是
條件:無
在完整原載體取補集,包含從未出現在邊表的孤立點;即使union覆蓋全部,也須另核matching有效才談perfect。
步驟識別與依賴
規則:matching_unmatched_complete_carrier_including_isolates · 依賴:G001, S009
結論
([[0, 1], [2, 3]], [0, 1, 2, 3], [4, 5], 是)
依上列完整代值及條件核對得到原題答案;原題編號、格式與狀態保持不變。