原題與已知條件
完整有限無向簡單圖與每頂點顏色。操作=coloring-conflict;資料={"n":6,"edges":[[0,1],[1,2],[2,3],[3,4],[4,5]],"colors":[14,14,15,14,15,14]}。請依 [conflicting_edges,count,proper] 欄序回答。
G001 — 完整有限無向簡單圖與每頂點顏色。操作=coloring-conflict;資料={"n":6,"edges":[[0,1],[1,2],[2,3],[3,4],[4,5]],"colors":[14,14,15,14,15,14]}。請依 [conflicting_edges,count,proper] 欄序回答。
逐步推導
S001 · implies
操作前
complete undirected vertex carrier Fin(6);original edges=[[0, 1], [1, 2], [2, 3], [3, 4], [4, 5]]
操作後
normalized sorted simple edges=[[0, 1], [1, 2], [2, 3], [3, 4], [4, 5]];all vertices including isolates=[0, 1, 2, 3, 4, 5]
條件:無
逐邊先排端點再把邊作字典序排序,反向重複仍是同一邊而須拒絕;loop亦拒絕。完整載體包括沒有邊的頂點,不能從邊表遺漏它們。
步驟識別與依賴
規則:graph_complete_simple_carrier_normalized_edge_order · 依賴:G001
S002 · implies
操作前
colors:normalized edge index=0;edge=[0, 1];endpoint labels=[14, 14]
操作後
different endpoints=否;same-label conflict=是
條件:無
只檢同一條實際邊的兩端;不相鄰頂點重用標記不算衝突,某一條跨部亦不代表其他邊都通過。
步驟識別與依賴
規則:graph_every_edge_endpoint_constraint · 依賴:G001, S001
S003 · implies
操作前
colors:normalized edge index=1;edge=[1, 2];endpoint labels=[14, 15]
操作後
different endpoints=是;same-label conflict=否
條件:無
只檢同一條實際邊的兩端;不相鄰頂點重用標記不算衝突,某一條跨部亦不代表其他邊都通過。
步驟識別與依賴
規則:graph_every_edge_endpoint_constraint · 依賴:G001, S002
S004 · implies
操作前
colors:normalized edge index=2;edge=[2, 3];endpoint labels=[15, 14]
操作後
different endpoints=是;same-label conflict=否
條件:無
只檢同一條實際邊的兩端;不相鄰頂點重用標記不算衝突,某一條跨部亦不代表其他邊都通過。
步驟識別與依賴
規則:graph_every_edge_endpoint_constraint · 依賴:G001, S003
S005 · implies
操作前
colors:normalized edge index=3;edge=[3, 4];endpoint labels=[14, 15]
操作後
different endpoints=是;same-label conflict=否
條件:無
只檢同一條實際邊的兩端;不相鄰頂點重用標記不算衝突,某一條跨部亦不代表其他邊都通過。
步驟識別與依賴
規則:graph_every_edge_endpoint_constraint · 依賴:G001, S004
S006 · implies
操作前
colors:normalized edge index=4;edge=[4, 5];endpoint labels=[15, 14]
操作後
different endpoints=是;same-label conflict=否
條件:無
只檢同一條實際邊的兩端;不相鄰頂點重用標記不算衝突,某一條跨部亦不代表其他邊都通過。
步驟識別與依賴
規則:graph_every_edge_endpoint_constraint · 依賴:G001, S005
S007 · implies
操作前
total original vertex colors=[14, 14, 15, 14, 15, 14];all normalized conflicts=[[0, 1]]
操作後
increasing distinct used labels=[14, 15];used count=2;all edges proper=否
條件:無
顏色是名字,使用幾種要數distinct,不用最大標籤加1。只有相鄰同色才衝突,非相鄰重用同色合法。
步驟識別與依賴
規則:coloring_distinct_label_count_not_numeric_magnitude · 依賴:G001, S006