Background\text{Background}Background

Last night, lots of students from primary school came to our class to study OI.\text{Last night, lots of students from primary school came to our class to study OI.}Last night, lots of students from primary school came to our class to study OI.

Mark next to me was asked by one of them, "Dude, are you copying codes?"\text{Mark next to me was asked by one of them, "Dude, are you copying codes?"}Mark next to me was asked by one of them, "Dude, are you copying codes?"

Mark was very angry that time cuz he’s just moving his code from IDE to blog.\text{Mark was very angry that time cuz he's just moving his code from IDE to blog.}Mark was very angry that time cuz he’s just moving his code from IDE to blog.

So he decided to let them take a HARD test (though he failed).\text{So he decided to let them take a HARD test (though he failed).}So he decided to let them take a HARD test (though he failed).

Finally that guy apologized and we started upgrading our test so that it could \text{Finally that guy apologized and we started upgrading our test so that it could }Finally that guy apologized and we started upgrading our test so that it could be harder. They’ll take this test this Sunday.\text{be harder. They'll take this test this Sunday.}be harder. They’ll take this test this Sunday.

Problem\text{Problem}Problem

Interger N and N points in a circle are given. Connect every pair of \text{Interger }N\text{ and }N\text{ points in a circle are given. Connect every pair of }Interger N and N points in a circle are given. Connect every pair of 

these points to a edge. There aren’t any 3 edges which shares one point.\text{these points to a edge. There aren't any 3 edges which shares one point.}these points to a edge. There aren’t any 3 edges which shares one point.

Please calculate how many pieces of the circle are cut by these edges.\text{Please calculate how many pieces of the circle are cut by these edges.}Please calculate how many pieces of the circle are cut by these edges.

Solution\text{Solution}Solution

Let’s consider some cases with smaller Ns.\text{Let's consider some cases with smaller }N\text{s.}Let’s consider some cases with smaller Ns.

Easy to get\text{Easy to get}Easy to get

NNN ansansans
111 111
222 222
333 444
444 888
555 161616
......... .........

Dude, ans=2N−1. Solved.\text{Dude, }ans=2^{N-1}.\text{ Solved.}Dude, ans=2N−1. Solved.



But actually it’s wrong.\text{But actually it's wrong.}But actually it’s wrong.

These formula \text{These formula }These formula JUST right when N∈{1,2,3,4,5,6,10}.\text{ right when }N\in\{1,2,3,4,5,6,10\}. right when N∈{1,2,3,4,5,6,10}.

Let’s do some simple problems first.\text{Let's do some simple problems first.}Let’s do some simple problems first.

I. Calculate how many edges are there in the circle;\text{I. Calculate how many edges are there in the circle;}I. Calculate how many edges are there in the circle;

∵Every 2 points make a edge, and there’re N points,\because\text{Every 2 points make a edge, and there're }N\text{ points,}∵Every 2 points make a edge, and there’re N points,

∴There’re CN2 edges in total.\therefore\text{There're }C_{N}^{2}\text{ edges in total.}∴There’re CN2​ edges in total.

II. Calculate how many points of intersection of these edges.\text{II. Calculate how many points of intersection of these edges.}II. Calculate how many points of intersection of these edges.

It maybe a little difficult, but I think it’s necessary for you guys to think about it.\text{It maybe a little difficult, but I think it's necessary for you guys to think about it.}It maybe a little difficult, but I think it’s necessary for you guys to think about it.

∵Every 2 edges make a point of intersection, every 2 points make a edge,\because\text{Every 2 edges make a point of intersection, every 2 points make a edge,}∵Every 2 edges make a point of intersection, every 2 points make a edge,

and there’re N points,\text{and there're }N\text{ points,}and there’re N points,

∴There’re \therefore\text{There're }∴There’re N×(N−1)×(N−2)×(N−3)N\times(N-1)\times(N-2)\times(N-3)N×(N−1)×(N−2)×(N−3)=CN4 points of intersection in total.=C_{N}^{4}\text{ points of intersection in total.}=CN4​ points of intersection in total.



Here goes our Euler’s formula in topology. Set a polyhedron which has \text{Here goes our Euler's formula in topology. Set a polyhedron which has }Here goes our Euler’s formula in topology. Set a polyhedron which has 

V vertexes ,F pieces of surface, and E edges. It always meetV\text{ vertexes ,}F\text{ pieces of surface, and }E\text{ edges. It always meet}V vertexes ,F pieces of surface, and E edges. It always meetV−E+F=2V-E+F=2V−E+F=2

∴F=E−V+2.\therefore F=E-V+2.∴F=E−V+2.

Therefore, the answer is CN2+CN+4+2−1=CN2+CN+4+1. Solved.\text{Therefore, the answer is }C_{N}^{2}+C_{N}+{4}+2-1=C_{N}^{2}+C_{N}+{4}+1.\text{ Solved.}Therefore, the answer is CN2​+CN​+4+2−1=CN2​+CN​+4+1. Solved.

The End\text{The End}The End

Video by 3Blue1Brown from bilibili\text{Video by 3Blue1Brown from bilibili}Video by 3Blue1Brown from bilibili

Reference material\text{Reference material}Reference material

Circle Problem From 3Blue1Brown (分圆问题)的更多相关文章

  1. PAT A1150 Travelling Salesman Problem (25 分)——图的遍历

    The "travelling salesman problem" asks the following question: "Given a list of citie ...

  2. 1150 Travelling Salesman Problem(25 分)

    The "travelling salesman problem" asks the following question: "Given a list of citie ...

  3. 后缀数组 --- WOj 1564 Problem 1564 - A - Circle

    Problem 1564 - A - Circle Problem's Link:   http://acm.whu.edu.cn/land/problem/detail?problem_id=156 ...

  4. 覆盖问题:最大覆盖问题(Maximum Covering Location Problem,MCLP)和集覆盖问题(Location Set Covering Problem,LSCP)

    集覆盖问题研究满足覆盖所有需求点顾客的前提下,服务站总的建站个数或建 设费用最小的问题.集覆盖问题最早是由 Roth和 Toregas等提出的,用于解决消防中心和救护车等的应急服务设施的选址问题,他们 ...

  5. PAT A1122 Hamiltonian Cycle (25 分)——图遍历

    The "Hamilton cycle problem" is to find a simple cycle that contains every vertex in a gra ...

  6. PAT A1142 Maximal Clique (25 分)——图

    A clique is a subset of vertices of an undirected graph such that every two distinct vertices in the ...

  7. leaflet创建简单地图

    一.leaflet介绍: 1.Leaflet 是一个为建设移动设备友好的互动地图,而开发的现代的.开源的 JavaScript 库.它是由 Vladimir Agafonkin 带领一个专业贡献者团队 ...

  8. 说说设计模式~组合模式(Composite)

    返回目录 何时能用到它? 组合模式又叫部分-整体模式,在树型结构中,模糊了简单元素和复杂元素的概念,客户程序可以向处理简单元素一样来处理复杂元素,从而使得客户程序与复杂元素的内部结构解耦.对于今天这个 ...

  9. html 学习笔记--基础篇

    最近被部门经理要求看一下html,重新看发现好多以前看过的只是都忘记了或者以前走马观花看过没有记得住的东西,正好趁此机会在博客上记录一下,顺便的如果以后需要查找,这里有记录的话可能会比上网查快一点(也 ...

随机推荐

  1. 使用opencv训练分类器时,traincascade训练报错:Train dataset for temp stage can not be filled.解决方法

    opencv分类器训练中,出错一般都是路径出错,例如, 1.opencv_traincascade.exe路径 2.负样本路径文件,neg.dat中的样本前路径是否正确 3.移植到别的电脑并修改完路径 ...

  2. Python 开发植物大战僵尸游戏

    作者:楷楷 链接:https://segmentfault.com/a/1190000019418065 开发思路 完整项目地址: https://github.com/371854496/pygam ...

  3. thinkphp6 常用方法文档

    请求变量 use think\facade\Request; Request::param('name'); Request::param();全部请求变量 返回数组 Request::param([ ...

  4. 解析 HTTP 请求 header 错误

    1.org.apache.coyote.http11.Http11Processor.service 解析 HTTP 请求 header 错误 2.原因:在创建项目名称的时候,文件名不能带有中文,只能 ...

  5. Linux之文件权限、用户管理

    世界真美好!

  6. 启动第二个activity,然后返回数据给第一个数据

    第一个activity启动的代码: intent = new Intent(MainActivity.this, Main2Activity.class); startActivityForResul ...

  7. 主动降噪技术(ANC)的前生今世--概念历史

    一 概念 假如使用一句通俗的语言来概述ANC的原理的话,那就是:通过发出与噪声相位相反,频率.振幅相同的声波与噪声干涉实现相位抵消. 使用比较正式的语言来解释就是:动降噪通过降噪系统产生与外界噪音相等 ...

  8. Hadoop 之 深入探索MapReduce

    1.MapReduce基础概念 答:MapReduce作业时一种大规模数据的并行计算的便程模型.我们可以将HDFS中存储的海量数据,通过MapReduce作业进行计算,得到目标数据. 2.MapRed ...

  9. [洛谷日报第39期]比STL还STL?——pbds

    [洛谷日报第39期]比STL还STL?——pbds   洛谷科技 发布时间:18-08-3116:37 __gnu_pbds食用教程 引入 某P党:“你们C++的STL库真强(e)大(xin),好多数 ...

  10. Android Studio [真机测试/开发者模式]

    一.手机设置 首先根据自己的手机型号百度打开开发者模式, 我的是vivo,设置--->更多设置-->关于手机-->软件版本号连续点击会提示开启开发者模式. 并在开发者选项里打开USB ...