← 回題庫

卷別

資料結構及演算法

選擇

國立政治大學 2025 · 考試 · 第 10 題

考科演算法

(4%) Given an undirected graph of nn vertices, mm edges and pp connected components, what is the minimum number of edges required to make this graph connected?

  • (A)
    n−p+1n-p+1
  • (B)
    p−1p-1
  • (C)
    n−1n-1
  • (D)
    pp
  • (E)
    nn

標準解析

AI 已複查