-
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
-
FLch5RMLeg2
第五章的递推的极大似然法辨识程序,《系统辨识及其MATLAB仿真》附带的光盘(Chapter V of the recursive maximum likelihood identification procedure, " System Identification and MATLAB simulation" with CD-ROM)
- 2011-11-30 23:59:21下载
- 积分:1
-
axi_bfm_ug_examples.tar
axi_bfm_ug_examples axi bus function model user guide examples
- 2014-02-19 11:09:48下载
- 积分:1
-
matlab
matlab在振动分析中的应用源代码 包括各种信号处理的时域频域方法 强烈推荐 仅供学习交流(matlab in vibration analysis application source code, including various signal processing frequency domain method is strongly recommended for learning exchanges)
- 2013-11-04 19:15:39下载
- 积分:1
-
edgeKirsch
It is important to detect the edges of the image.It is not better than cany.
- 2015-02-10 17:31:11下载
- 积分:1
-
Line-detection
这组代码是有关SAR遥感图像中城区河流和道路提取的代码实现,对复杂城区道路线条提取非常有效。(This code is about SAR remote sensing images of urban river and road extraction code to achieve, the complex urban road line extraction is very effective.)
- 2017-05-27 09:53:28下载
- 积分:1
-
kalkulator
used to simple calculator
- 2009-11-16 11:06:04下载
- 积分:1
-
boosting_demo
Boost 经典分类器matlab实现,初学者之福音(adaboosting)
- 2010-12-13 21:35:29下载
- 积分:1
-
ABAP-EMAIL
SAP,ABAP编程,利用SMARTFORM生成PFD文档并通过EMAIL发送(SAP, ABAP programming, using SMARTFORM to generate PFD documents and sent by EMAIL)
- 2013-08-07 12:32:25下载
- 积分:1
-
xiaoshiju
消失矩作用的程序,它是用一维信号来进行编程
(vanishing moments of procedures, it is a signal to carry out peacekeeping Programming)
- 2006-10-15 10:03:13下载
- 积分:1