当前位置:网站首页>[learning notes] graph theory thinking problem
[learning notes] graph theory thinking problem
2022-07-23 10:22:00 【Ants looking up at the starry sky】
chain reaction (chain)
- Everything can be constructed
fool around with - Obviously, it can be considered in connected blocks
- If this connected block can be divided into two sets without edges inside X X X, Y Y Y, And only exist X → Y X\to Y X→Y The edge of , Then obviously, new edges cannot be generated
- If I can construct three sets without edges inside X X X, Y Y Y, Z Z Z, And only exist X → Y X\to Y X→Y, Y → Z Y\to Z Y→Z, Z → X Z\to X Z→X The edge of , So clearly X , Y , Z X,Y,Z X,Y,Z Will maintain internal independence , And the final number of sides is ∣ X ∣ ∣ Y ∣ + ∣ Y ∣ ∣ Z ∣ + ∣ X ∣ ∣ Z ∣ |X||Y|+|Y||Z|+|X||Z| ∣X∣∣Y∣+∣Y∣∣Z∣+∣X∣∣Z∣
- If I can't construct it, then this connected block is a complete graph
- For convenience , Can be constructed in the context of an undirected graph
- Complexity O ( n + m ) O(n+m) O(n+m)
边栏推荐
猜你喜欢

What is per title encoding?

九张图纵观加密市场周期规律

A concise tutorial for soft exam system architecture designer | reverse engineering

软考 系统架构设计师 简明教程 | 逆向工程
![[basics of C language] 14 file, declaration and format input and output](/img/92/e7a9ec9e39349757f78aed4f5a622a.jpg)
[basics of C language] 14 file, declaration and format input and output

Anaconda source change and opencv installation

Network communication principle and IP address allocation principle. The seven layers of the network are physical layer, data link layer, network layer, transmission layer, session layer, presentation

The world is being devoured by open source software

EasyCVR新版本(v2.5.0)目录分级功能如何使用?

What is the experience of writing concurrent tool classes (semaphore, cyclicbarrier, countdownlatch) by yourself in line 30?
随机推荐
智能建造试点城市通知的三大目标和八项任务
软考 系统架构设计师 简明教程 | 逆向工程
软考 系统架构设计师 简明教程 | 需求工程
Time series - third party Library: tsfresh [feature extraction, feature selection]
[MySQL] cursor
【车联网原型系统|二】数据库+应用层协议设计
十年架构五年生活-05第一次出差
数据中台、BI业务访谈(三):如何选择合适的访谈对象
L-cysteine modified gold nanoparticles (Cys GNPs) and bovine serum albumin / biotinylated albumin nanoparticles
C language flexible array
EasyCVR新版本(v2.5.0)目录分级功能如何使用?
世界正在被开源软件吞食
多线程中的「lost wake up 问题」| 为什么wait()和notify()需要搭配synchonized关键字使用?
适合拼多多小商家配件的一些思路跟技巧
c# 字节数组和类相互转换
[C language foundation] 15 bit operation
目标检测xml文件实现mixup数据增强(修改文件路径直接能用,非常方便)
[summary]
Arcgis 计算两个栅格图层相关性
禅道的甘特图功能是什么