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. jenkins在windows上自动化部署.Net(.Net Core)项目

    前言 什么是持续集成呢?Continuous integration(CI).持续集成是一种软件开发实践,即团队开发成员经常集成他们的工作,通常每个成员至少集成一次,也就意味着每天可能会发生多次集成. ...

  2. C#基础知识总结(一)

    1.什么是匿名函数?匿名函数,就是没有名字的函数,或者说就是一组代码块,他的参数只有在方法块内有效,可以有效的减小创建方法事所需要的系统开销 2.lambda表达式是什么?lambda表达式 就是一个 ...

  3. (转)阿里云CentOS 7下配置及使用mysql

    一.安装 1 正确的安装方法: 众所周知,Linux系统自带的repo是不会自动更新每个软件的最新版本(基本都是比较靠后的稳定版),所以无法通过yum方式安装MySQL的高级版本.所以我们需要先安装带 ...

  4. 配置文件my.cnf---配置信息注释大全

    在进行MySQL与CM+CHD之间的应用配置时,发现此前对于MySQL的配置含义过于模糊,所以将CM+CHD集群所涉及MySQL方面的配置含义进行抽取并加以注释,方便此后的配置和使用. 一.客户端设置 ...

  5. java8 Stream使用总结

    [前言] java8新特性 java8 函数接口 java8 Optional使用总结 Java 8 时间日期使用 java8 lambda表达式 1.流的介绍 Java8 中的 Stream 是对集 ...

  6. 基于C#的机器学习--机器学习建模的基础

    构建ML模型的步骤 现在我们已经看了解到了一些ML应用程序的例子,问题是,我们如何构建这样的ML应用程序和系统? 下图总结了我们使用ML开发应用程序的方法,我们将在下面更详细地讨论这个问题: 如上图所 ...

  7. Centeos7搭建selenium+Chrome浏览器

    博主主要是用来更新爬虫Cookie 环境安装 python3 安装selenium pip3 install selenium 安装chrome浏览器+chromedriver驱动 一.配置yum源 ...

  8. 虚拟现实研究经典问卷Presence Questionnaire (PQ) 详细介绍

    虚拟现实(VR)是一种沉浸式体验,它的作用就是将用户完全包裹在一个人为构建出的(数字)虚拟世界中,让用户在这个新环境中得到不一样的体验,或完成一些现实中不能完成的任务.所以让体验者相信“我身处此中”非 ...

  9. 设计时数据源:在PostgreSql 数据查询中使用参数过滤

    在上一篇文章中,我们学习了如何设计时连接PostgreSQL 数据库及环境搭建.本节我们来学习使用PostgreSql 数据源时,创建数据集时带参数过滤的查询语句写法. 在报表中包含两种参数,可参考博 ...

  10. 快学Scala 第十三课 (类型层级,对象相等性)

    Scala 类型层级: 对象相等性: 和Java一样要重写equals方法和hashcode方法 class Student(val id: Int, val name: String) { over ...