ScholarGate
Pembantu
Machine learningSoftware Metrics

Kompleksiti Siklomati

Idea terasnya ialah setiap titik keputusan (if, while, switch case) mencipta laluan bercabang menerusi kod. Fungsi dengan 5 syarat bersandar memerlukan pengujian 2^5 = 32 senario dalam kes terburuk. Kompleksiti siklomati mengira bilangan minimum ujian yang diperlukan untuk mencapai liputan 100%: CC = bilangan cabang (titik keputusan) tolak bilangan gelung, tambah satu. CC yang lebih tinggi bermakna bilangan kes ujian yang lebih banyak secara eksponensial diperlukan.

Buka dalam MethodMindTidak lama lagiVideoTidak lama lagiDownload slides

Baca kaedah sepenuhnya

Ahli sahaja

Log masuk dengan akaun percuma untuk membaca bahagian ini.

Log masuk

Method map

The neighbourhood of related methods — select a node to explore.

Sumber

  1. McCabe, T. J. (1976). A complexity measure. IEEE Transactions on Software Engineering, SE-2(4), 308–320. DOI: 10.1109/TSE.1976.233837
  2. Campbell, G. H. (1986). Defining a good metric, a software testing perspective. ASQ Software Quality Conference. link
  3. Nagy, C., & Kriebel, K. (2001). Achieving optimal complexity and reliability. SAMS Publishing. ISBN: 0672322285

Cara memetik halaman ini

ScholarGate. (2026, June 3). Cyclomatic Complexity Metric. ScholarGate. https://scholargate.app/ms/numerical-methods/cyclomatic-complexity

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

Compare side by side

Dirujuk oleh

ScholarGateCyclomatic Complexity (Cyclomatic Complexity Metric). Dicapai 2026-06-15 daripada https://scholargate.app/ms/numerical-methods/cyclomatic-complexity · Set data: https://doi.org/10.5281/zenodo.20539026