-
counting-sheep
前一段时间我有睡眠问题。我曾经躺在床上,盯着天花板,几个小时。后来有一天,我的外婆建议我试着数羊后,我已经上床睡觉。与往常一样,当我的奶奶暗示的东西,我决定尝试一下。唯一的问题是,有没有羊的时候,我就去睡觉各地进行计数。
创意,因为我,这是不会阻止我。我坐下来写,使得字符,其中#代表羊的网格,而计算机程序。草(或任何你喜欢的,只是没有羊)。为了使计算更有趣,我也决定要数绵羊,而不是单一的成群的牛羊。两只羊在同一个群,如果他们都有一个共同的一面(上,下,左或右)。另外,如果羊A是在同一羊群如羊B和羊B处于同一羊群如羊℃,然后羊A和C是在同一个群。
现在,我已经有了一个新的问题。虽然这些计数羊居然帮我睡着了,我觉得这是非常无聊的。为了解决这个问题,我决定我需要做的计数为我另一台计算机上的程序。然后,我就可以只启动这两个程序之前,我去睡觉,我会睡个好觉,直到没有任何干扰的早晨。我需要你给我写的这个程序。(A while ago I had trouble sleeping. I used to lie awake, staring at the ceiling, for hours and hours. Then one day my grandmother suggested I tried counting sheep after I d gone to bed. As always when my grandmother suggests things, I decided to try it out. The only problem was, there were no sheep around to be counted when I went to bed.
Creative as I am, that wasn t going to stop me. I sat down and wrote a computer program that made a grid of characters, where# represents a sheep, while . is grass (or whatever you like, just not sheep). To make the counting a little more interesting, I also decided I wanted to count flocks of sheep instead of single sheep. Two sheep are in the same flock if they share a common side (up, down, right or left). Also, if sheep A is in the same flock as sheep B, and sheep B is in the same flock as sheep C, then sheeps A and C are in the same flock.
Now, I ve got a new problem. Though counting these sheep actually helps me fall asleep, I find)
- 2014-11-20 16:33:12下载
- 积分:1
-
570486690TDIDF_Demo
TFIDF计算方法详细解释,代码解释很多,也有帮助文档(TFIDF calculation method explained in detail, explain a lot of code, but also help documentation)
- 2015-04-03 10:18:35下载
- 积分:1
-
Fractals
图像分形盒维数的算法源程序.此算法是基于黑白二值图像的,因此,需要对导入的图片进行二值化处理,因此算法存在一定误差,但是此算法误差控制在4 以内(Image fractal dimension algorithm source code box This algorithm is based on black and white binary image, and therefore, need to import the picture binarization processing, so the algorithm there are some errors, but this algorithm is less than 4 error control)
- 2011-10-18 18:43:03下载
- 积分:1
-
matlab
基于纹理结构的图像检索,matlab实现。(Texture-based image retrieval, matlab achieve.)
- 2013-10-06 10:23:59下载
- 积分:1
-
MATLAB_binary_image_processing_design_classic_sour
MATLAB设计图像二值化处理经典源码MATLAB binary image processing design classic source(MATLAB binary image processing design classic source MATLAB binary image processing design classic source)
- 2010-08-03 11:41:50下载
- 积分:1
-
GM3101Ver3[1][1].1display
成都国腾辉GM3101倒车雷达专用芯片显示源程序(Chengdu, China Tenghui GM3101 reversing radar dedicated chip source)
- 2012-10-22 00:02:47下载
- 积分:1
-
WiMAX+Technology+Training+(1)
wimax的培训说明.希望能对各位有帮助!(wimax training description. hope you can help!)
- 2007-10-18 12:49:13下载
- 积分:1
-
Text1
c++产生高斯白噪声,可用于通信或信号传输系统中,白噪声产生的程序调用(c++ generated Gaussian white noise, can be used for communication or signal transmission system, the white noise generated by the procedure call)
- 2008-04-19 22:34:34下载
- 积分:1
-
SEP
SEP协议的源代码,真实有效可靠,可以直接用于MATLAB软件仿真模拟。(The SEP protocol source code, real effective and reliable, and can be used directly in MATLAB software simulation.)
- 2013-04-11 10:22:40下载
- 积分:1
-
sys
地震合成记录,通过褶积模型,利用子波和反射系数求出了自激自收情况下的波形。(synthetic seismogram)
- 2011-12-06 16:34:27下载
- 积分:1