Traditional Culture Encyclopedia - Traditional festivals - What if there are multiple zeros in Hungarian law?
What if there are multiple zeros in Hungarian law?
1. Continue to use Hungarian algorithm, because it is very effective in dealing with bipartite graphs.
2. If there are multiple zeros, you can consider using other algorithms, such as KM algorithm or branch-and-bound algorithm. These algorithms can handle multiple zeros better.
You can try to deform the bipartite graph so that it does not contain multiple zeros. The specific method is to connect all vertices in a vertex set to their corresponding virtual vertices, and then solve them by Hungarian algorithm.
4. If there are multiple zeros in the bipartite graph, the extended Hungarian algorithm can be used. The algorithm adds two steps to the original Hungarian algorithm: the first step is to add a weight to all the edges adjacent to 0, and the second step is to ignore these edges with a weight of 0 in the search of augmented paths.
I hope these suggestions are helpful to you.
- Previous article:Dangshan county culture
- Next article:Travel Notes of Ancient Villages in Guixi Guifeng, Youxi County, Fujian Province.
- Related articles
- How much profit is usually made by opening a convenience store?
- Comparison between horizontal handlebars and curved handlebars of road bicycles
- Unforgettable Dragon Boat Festival middle school composition 700 words (personal general)
- What are the necessary artifacts for office workers who work nine to five?
- Regulations of Chengdu Municipality on Sports
- What exactly does a web operations intern typically do when they first join a company
- Global Rain Boots Ranking and Features
- What is the impact of traditional culture on our lives?
- Are chess and Yijing gossip interlinked?
- Characteristics of Lin's painting style