当前位置:网站首页>[learning notes] matroid
[learning notes] matroid
2022-06-28 08:14:00 【Ants looking up at the stars】

For this kind of question , There is a unified solution , namely According to the weight from big to small greed , Until you can't choose .
Common matroid models :
- The items are ( v i , w i ) (v_i,w_i) (vi,wi) Two attributes , Pick a collection S S S , seek max ( ∑ i ∈ S v i ) \max(\sum_{i\in S}v_i) max(∑i∈Svi) , among S S S Any nonempty subset attribute XOR and ≠ 0 \neq 0 =0 .
M(E,I) in E Express n A collection of items , I Indicates that any non empty subset attribute and ≠ 0 \neq 0 =0 Collection of items .
- MST .
M(E,I) in E Represents a collection of edges , I Represents a set of edges that satisfy no ring .
Because we're going to MST , So consider w ( u , v ) = w 0 − w ( u , v ) w(u,v)=w_0-w(u,v) w(u,v)=w0−w(u,v) , Note that what we are looking for must be a spanning tree , Therefore, it is necessary to avoid negative weight of edges .( Otherwise, you can choose not to ).
- Minimum base ring spanning tree .
Prove slightly . It is also greedy to sort by edge , Proof can disprove ( The proving process of matroids is rather troublesome ).
- Yes n n n Vector ( a 1 , a 2 , . . , a m ) (a_1,a_2,..,a_m) (a1,a2,..,am) , Each vector has a weight v a l i val_i vali , Select a set of linearly independent vectors S , In the meet |S| Under the greatest premise min ( ∑ i ∈ S v a l i ) \min(\sum_{i\in S}val_i) min(∑i∈Svali) .
This problem can be translated into solving max ( ∑ i ∈ S v a l i ) \max(\sum_{i\in S}val_i) max(∑i∈Svali) , Because the weight is positive , therefore S It must be the basis of the original matroid , And because the basis size of matroids is the same ( Otherwise, it contradicts exchangeability ), So directly v a l i val_i vali Sort from small to large greedy .
边栏推荐
- Prometheus monitoring (I)
- How redis solves cache avalanche, breakdown and penetration problems
- Redis master-slave structure and application scenarios
- Prometheus + grafana + MySQL master-slave replication + host monitoring
- Image translation /transformer:ittr: unpaired image to image translation with transformers
- 匿名页的反向映射
- B_QuRT_User_Guide(26)
- App automated testing appium Tutorial Part 1 - advanced supplementary content
- Discussion on the application of GIS 3D system in mining industry
- Trigonometric transformation formula
猜你喜欢

SLAM中常用的雅克比矩阵J

Soft exam -- software designer -- afternoon question data flow diagram DFD

SQL master-slave replication setup

Unity 获取当前物体正前方,一定角度、距离的坐标点

asp. Net datalist when there are multiple data displays

Redis master-slave structure and application scenarios

Activity implicit jump

Unity gets the coordinate point in front of the current object at a certain angle and distance

asp. Net error "/" server error in the application. String or binary data would be truncated. The statement...

Image translation /transformer:ittr: unpaired image to image translation with transformers
随机推荐
The RAC cannot connect to the database normally after modifying the scan IP. The ora-12514 problem is handled
asp. Net upload image path and image name
nlp序列完全可以模拟人脑智能
MySQL row format parsing
Activity implicit jump
Redis cluster deployment and application scenarios
Buffer pool in MySQL
Study notes 22/1/11
GPIO configuration of SOC
Introduction to Devops Basics
Ambari (IX) --- use expect to realize no interaction in ambri server setup phase (valid for personal test)
MySQL single table access method
Is it reliable for securities companies to register and open accounts? Is it safe?
Installing mysql5.7 under Windows
How redis solves cache avalanche, breakdown and penetration problems
Prometheus service discovery
十大券商注册开户靠谱吗?安全吗?
How to insert a single quotation mark into a table as a data type in Oracle pl/sql
Resolution of Rac grid failure to start after server restart
The solution of "user account control to continue, please enter administrator user name and password" appears in win10 Professional Edition