POJ 3692 Kindergarten (补图的最大独立集||匈牙利算法)

【故障排查】telnet连接失败:端口23不可达的深度分析与解决方案 本文深度解析telnet连接失败时端口23不可达的常见原因与解决方案。从快速自查目标地址、端口到服务端排查,涵盖服务状态检查、防火墙配置及安全组设置,并提供进阶诊断工具与抓包分析方法。文章强调telnet协议的安全风险,建议在生产环境中改用SSH等加密协议进行远程管理。 阅读详情
Kindergarten
Time Limit: 2000MS Memory Limit: 65536K
Total Submissions: 7291 Accepted: 3590

Description

In a kindergarten, there are a lot of kids. All girls of the kids know each other and all boys also know each other. In addition to that, some girls and boys know each other. Now the teachers want to pick some kids to play a game, which need that all players know each other. You are to help to find maximum number of kids the teacher can pick.

Input

The input consists of multiple test cases. Each test case starts with a line containing three integers
G, B (1 ≤ G, B ≤ 200) and M (0 ≤ M ≤ G × B), which is the number of girls, the number of boys and
the number of pairs of girl and boy who know each other, respectively.
Each of the following M lines contains two integers X and Y (1 ≤ X≤ G,1 ≤ Y ≤ B), which indicates that girl X and boy Y know each other.
The girls are numbered from 1 to G and the boys are numbered from 1 to B.

The last test case is followed by a line containing three zeros.

Output

For each test case, print a line containing the test case number( beginning with 1) followed by a integer which is the maximum number of kids the teacher can pick.

Sample Input

2 3 3
1 1
1 2
2 3
2 3 5
1 1
1 2
2 1
2 2
2 3
0 0 0

Sample Output

Case 1: 3
Case 2: 4

Source


POINT:

女生为图的左部分,男生为右部分。他们都各自认识(即各自连了线)。

男女分别认识的也各自连线。问你可以选出几个人来,他们各自都互相认识。

也就是求最大点集,每个点都和其他点有线连着。

构造图的补图,这样互相没线的就代表认识。可构造一个二分图。

求这个二分图的最大独立集,也就是这个点集的点都没有线连。(也就是全部都互相认识)


可以用最大流,或者匈牙利算法。

dinic:

#include <iostream>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <queue>
using namespace std;
const int maxn = 444;
const int inf = 0x3f3f3f3f;
struct node
{
    int from,to,flow,cap;
    node(int u,int v,int f,int c):
    from(u),to(v),flow(f),cap(c){};
    
};
int s,t;
vector<int>G[maxn];
vector<node> len;
int cur[maxn],d[maxn],vis[maxn];
void add(int u,int v,int c)
{
    len.push_back(node(u,v,0,c));
    len.push_back(node(v,u,0,0));
    G[u].push_back(len.size()-2);
    G[v].push_back(len.size()-1);
}

bool bfs()
{
    memset(d,0,sizeof d);
    memset(vis,0,sizeof vis);
    queue<int> q;
    q.push(s);
    vis[s]=1,d[s]=0;
    while(!q.empty())
    {
        int u=q.front();q.pop();
        for(int i=0;i<G[u].size();i++)
        {
            node e=len[G[u][i]];
            if(e.cap>e.flow&&vis[e.to]==0)
            {
                d[e.to]=d[u]+1;
                vis[e.to]=1;
                q.push(e.to);
            }
        }
    }
    return vis[t];
}
int dfs(int u,int a)
{
    if(u==t||a==0) return a;
    int flow=0,f;
    for(int &i = cur[u];i<G[u].size();i++)
    {
        node &e=len[G[u][i]];
        if(d[e.to]-1==d[u]&&(f=dfs(e.to,min(a,e.cap-e.flow)))>0)
        {
            flow+=f;
            e.flow+=f;
            a-=f;
            len[G[u][i]^1].flow-=f;
        }
        if(a==0) break;
    }
    if(flow==0) d[u]=-1;
    return flow;
}
int maxflow()
{
    int ans=0;
    while(bfs())
    {
        memset(cur,0,sizeof cur);
        ans+=dfs(s,inf);
    }
    return ans;
}
int mp[maxn][maxn];
void init()
{
    memset(mp,0,sizeof mp);
    for(int i=0;i<maxn;i++) G[i].clear();
    len.clear();
}
int main()
{
    int g,b,m;
    int p=0;
    while(~scanf("%d %d %d",&g,&b,&m))
    {
        if(g==b&&b==m&&g==0) break;
        init();
        for(int i=1;i<=m;i++)
        {
            int u,v;scanf("%d %d",&u,&v);
            mp[u][v]=1;
        }
        for(int i=1;i<=g;i++)
        {
            for(int j=1;j<=b;j++)
            {
                if(mp[i][j]==0)
                {
                    add(i,j+g,inf);
                }
            }
        }
        s=0;t=b+g+1;
        for(int i=1;i<=g;i++) add(0,i,1);
        for(int i=1;i<=b;i++) add(i+g,t,1);
        printf("Case %d: ",++p);
        printf("%d\n",b+g-maxflow());
    }
    
}


匈牙利:

#include <iostream>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <queue>
using namespace std;
const int maxn = 444;
const int inf = 0x3f3f3f3f;
int mp[maxn][maxn];
int use[maxn],aim[maxn]; int g,b,m;
bool dfs(int now)
{
    for(int i=1;i<=b;i++)
    {
        if(use[i]==0&&mp[now][i]==0)
        {
            use[i]=1;
            if(aim[i]==0||dfs(aim[i]))
            {
                aim[i]=now;
                return true;
            }
        }
    }
    return false;
}
int main()
{
    int p=0;
    while(~scanf("%d %d %d",&g,&b,&m))
    {
        if(g==b&&b==m&&g==0) break;
        memset(mp,0,sizeof mp);
        memset(aim,0,sizeof aim);
        for(int i=1;i<=m;i++)
        {
            int u,v;scanf("%d %d",&u,&v);
            mp[u][v]=1;
        }
        int dui=0;
        for(int i=1;i<=g;i++)
        {
            memset(use,0,sizeof use);
            if(dfs(i)) dui++;
        }
        printf("Case %d: ",++p);
        printf("%d\n",g+b-dui);
        
    }
    
}




GD32F303实战:用定时器4触发ADC2+DMA,实现10ms精准采样1024点的完整流程 本文详细介绍了在GD32F303微控制器上使用Timer4触发ADC2配合DMA传输,实现10ms精准采样1024点的完整方案。从硬件架构设计、时钟树配置到定时器参数计算,提供了完整的工程实现流程和常见问题排查方法,适用于工业传感器监测等高实时性场景。 阅读详情

相关推荐

MuJoCo 关节角速度记录与可视化,监控机械臂运动状态

1. 手动计算关节速度,其中timestep为仿真步长。2. 使用data.qvel直接取得关节速度。

darcsdn 774

匹配算法之 匈牙利算法详解

匹配算法之 匈牙利算法详解

yohnyang的博客 1万+

高通camera调试经验总结

修改AF对焦模式 adb shell setprop vendor.debug.camera.af.manual 2 //使能手动对焦 adb shell setprop vendor.debug.camera.af.manual 0 //使能自动对焦

weixin_43381364的博客 1万+

Hdu 1068(匈牙利算法+最大独立集)

Hdu 1068 (1)思路: 用匈牙利算法求出最大匹配,然后求出最大独立集 = n - 最大匹配 = n - (最大匹配的点数)/2. (2)匈牙利算法: 匈牙利算法是用来求解最大匹配算法; 算法的基本思想是寻找图中的增广路径,从一个点开始下一个未匹配点,如果找到下一个未匹配点, 就说明找到了一条新的增广路径,将新的匹配边加入增广路径,然后将之前的匹配边与非匹配边取反, ...

积少成多,水滴石穿 323

从零配置华为S5720交换机VLAN:Web界面与命令行双模式详解(附拓扑图)

本文详细解析华为S5720交换机VLAN配置的全过程,涵盖Web界面与命令行(CLI)双模式操作指南。从基础环境准备到多交换机环境配置同步,特别针对S5720-52X系列交换机的VLANif接口、端口分配策略及交换机堆叠技术进行深入讲解,并附实用拓扑图与配置示例,助力企业网络管理员高效完成VLAN部署。

happy2的博客 1387

Windows上python的spark环境搭建

1.安装好JDK 下载并安装好jdk-12.0.1_windows-x64_bin.exe,配置环境变量: 新建系统变量JAVA_HOME,值为Java安装路径 新建系统变量CLASSPATH,值为 .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;(注意最前面的圆点) 配置系统变量PATH,添加 %JAVA_HOME%bin;%JAVA_HOME%jrebin 在CMD中输入:java或者java -version,不显示不是内部命令等,说明安装成功。

weixin_43915303的博客 656

POJ 3692 补图的最大独立集

题意 传送门 POJ 3692 题解 求两两之间互有关系的点集,用补集的思想可以转换为求补图的最大独立集,最终可以转化为最大二分匹配问题。 #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #include <queue> #incl...

neweryyy的博客 260

modbus

从机地址 功能码 起始地址高位 起始地址低位 数量高位 数量低位 字节数 0001H高位 0001H低位 0002H高位 0002H低位 CRC高位 CRC低位。每个输入寄存器的长度为2个字节。其中,CDH对应线圈0013H到001AH的内容,01H对应线圈001B到001CH的内容,未使用位用0填充。从机地址 功能码 起始地址高位 起始地址低位 寄存器数量高位 寄存器数量低位 CRC高位 CRC低位。从机地址 功能码 起始地址高位 起始地址低位 寄存器数量高位 寄存器数量低位 CRC高位 CRC低位。

lunhuicnm的博客 9800

[图论总结] 最大独立集(例题:Code Names)

[图论总结1]最大独立集的概念独立集匹配概念之间的关系及性质例题 最大独立集的概念 独立集 PICTURE:/home/ldu/.config/tencent-qq//AppData/file//sendpix0.jpg 来自oi-wiki 在上面的描述中,V是代表的点权,而E代表的是边权 独立集以及最大独立集均是点的集合 从字面意思来说,一张图的最大独立集就是独立集中大小最大的 如果说两个点之间是独立的那么说这两个点之间就没有边相连 匹配 PICTURE:/home/ldu/.config/tencen

PushyTao的博客 1万+

Matlab实战:水声信号DEMON谱分析从入门到精通(附完整源码)

本文详细介绍了使用Matlab进行水声信号DEMON谱分析的完整流程,从基础理论到实战应用,涵盖信号预处理、包络提取、频谱分析等关键步骤,并附完整源码。特别针对水声通信中的低信噪比环境,提供了多种优化方案和性能提升技巧,帮助读者快速掌握这一水下目标检测的核心技术。

gamma的博客 301

实验2 存储器设计与实现【计算机组成原理】

实验2 存储器设计与实现【计算机组成原理】

小心星的博客 2407

POJ1419 Graph Coloring------(最大独立集-----补图最大团)

题目链接: http://poj.org/problem?id=1419 Graph Coloring Time Limit:1000MS Memory Limit:10000K Total Submissions:6047 Accepted:2786 Special Judge Description You are to...

Source_Roc 465

HTOL集成电路老化测试学习总结-20250510

电子元器件的可靠性在产品开发中至关重要,尤其是在微电子技术迅速发展的今天。电子元器件的失效率通常遵循“浴盆曲线”,分为早期失效期、可使用期和老化期。为了评估芯片的可靠性,常采用高温操作寿命测试(HTOL),通过高温和高压加速芯片老化,以筛选出早期失效的芯片并评估其长期可靠性。HTOL测试中,芯片在高温下运行并监控其性能变化,通过阿伦尼乌斯公式计算加速因子,预测芯片的失效率和寿命。此外,Burn-in测试用于加速芯片老化,提前发现并剔除不合格产品,而早期失效率测试(ELFR)则用于评估产品初期使用阶段的可靠性

歌颂苦难的行为是无耻的; 2121

POJ 3692 Kindergarten(最大匹配+匈牙利算法+补图思想)

In a kindergarten, there are a lot of kids. All girls of the kids know each other and all boys also know each other. In addition to that, some girls and boys know each other. Now the teachers want to pick some kids to play a game, which need that all playe

HJY 524

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

poj 3692 Kindergarten(二分图匹配,最大独立集)

Description In a kindergarten, there are a lot of kids. All girls of the kids know each other and all boys also know each other. In addition to that, some girls and boys know each other....

bandiaodai5734的博客 151

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

Poj_3692 Kindergarten -二分图的最大团

题目:在二分图中找出最大的完全二分图 定理:二分图的最大团=其补图的最大独立集 /************************************************ Author :DarkTong Created Time :2016/7/31 15:17:40 File Name :Poj_3296.cpp *...

bannesi6888的博客 144

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

poj 3692 Kindergarten 二分图 最大独立集

poj 3692 Kindergarten http://poj.org/problem?id=3692   挑选最多的互相认识的小朋友   补图的最大独立集   #include #include #include #include #include using namespace std; int g, b, k, a[403][403], match[4

倩 394

POJ 3692 Kindergarten

bool find(int x){ int i,j; for (j=1;j<=m;j++){ //扫描每个被匹配的物体 if (line[x][j]==true && used[j]==false) //如果有联系并且还没有标记过(这里标记的意思是这次查找曾试图改变过该物体的归属问题,但是没有成功,所以就不用瞎费工夫了)

Wildcatastrophe的博客 347

POJ3692 Kindergarten —— 二分图最大团

题目链接:http://poj.org/problem?id=3692 Kindergarten Time Limit:2000MS Memory Limit:65536K Total Submissions:7371 Accepted:3636 Description In a kindergarten...

alince20008的博客 169

POJ3692 HDU2458 Kindergarten

一开始一点思路都没有,后来看了这个解题报告才知道怎么,学习了,解题报告请猛击这里。 /******************************************************************************* # Author : Neo Fung # Email : neosfung@gmail.com # Last modified: 201

Neo Fung的专栏 1340

poj 3692 Kindergarten

<br />啊。。这次终于挑相互认识的小盆友出去玩咧。。呵呵。。<br /> <br />女生之间都相互认识,男生之间也是。给你男女认识对数,求出最大数量的小盆友相互都认识。。。<br /> <br />类似于之前那几道,建图,只不过这次匈牙利算法算的是未标记的图,在讨论里见这个叫补图。。。<br /> <br />开始一直不对因为,这个矩阵不是N*N的,因为我的初始化全是0,而最后判断的也是0的点才。。。所以界限需要严格定一下。。。<br /> <br />最后就用总人数减去不认识的最少人数(最小顶点覆盖

小媛在努力~ 1425

POJ 3692 Kindergarten 最大团->最大独立集

题意:在幼儿园中,男孩们相互

leodestiny 594

poj 3692 Kindergarten 二分匹配

题目链接:poj 3692         给定

飞火扑蛾的专栏 467

poj3692_Kindergarten

poj3692_Kindergarten 这题目大意是:男孩互相认识,女孩互相认识,一部分男女之间认识,老师要选一部分人,要求这部分人必须都相互认识。 这是一个二部图,先求出补图,在补图中G‘左右两点有连线说明在G中两者不认识,反之成立。 所以就是在补图中怎样来构造左右两部分间互相之间没有连线的图。============&gt...

weixin_30698297的博客 100

POJ 3692 Kindergarten (二分图 最大团)

POJ 3692 Kindergarten (二分图 最大团)

Tc的专栏 1800

POJ-3692Kindergarten,求最大独立集!

Kindergarten Time Limit: 2000MS   Memory Limit: 65536K       Description In a kindergarten, there are a lot of kids. All girls of the kids know each other and all boys

NYIST_TC_LYQ的博客 588
上一篇: HDU 1569 方格取数(2) (二分图的最大点权独立集)
下一篇: HDU 4825 Xor Sum(01字典树+异或)
Mr_Treeeee
博客等级 码龄10年 38粉丝 551原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值