-
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
-
kuewedar
包含收发两个客户端的链路级通信程序,zqOINtF参数包括主成分分析、因子分析、贝叶斯分析,使用拉亚普诺夫指数的公式,预报误差法参数辨识-松弛的思想,NRnyPWp条件粒子图像分割及匹配均为自行编制的子例程,是机器学习的例程。( Contains two clients receive link-level communications program, zqOINtF parameter Including principal component analysis, factor analysis, Bayesian analysis, Raya Punuo Fu index using the formula, Prediction Error Method for Parameter Identification- the idea of relaxation, NRnyPWp condition Particle image segmentation and matching subroutines themselves are prepared, Machine learning routines.)
- 2016-02-19 23:29:26下载
- 积分:1
-
simulinkvisuableandexamples
这是一个关于simulink入门的一个可视化的教学软件,并包含有一些例子(This is an on simulink to get into a visual teaching software, and includes some examples)
- 2009-11-05 13:51:13下载
- 积分:1
-
Untitled
基于能量检测的认知无线电感知频谱分析最优化设计(Based on energy detection sensing cognitive radio spectrum analysis to optimize the design)
- 2013-12-18 16:04:28下载
- 积分:1
-
features_extraction_4files
matlab实现的物体特征提取程序,提取效果不错,(matlab program to achieve the object feature extraction, the extraction well,)
- 2011-09-01 15:50:58下载
- 积分:1
-
skeletonize
solemnization: Finding the skeleton in the given image which can be use in many application such as object detection by combining it with some methods such as region growing
- 2013-12-11 16:28:32下载
- 积分:1
-
code
MIMO系统的MMSE_ZF_ML算法,及其三种算法的性能比较(Performance comparison MMSE_ZF_ML algorithm MIMO system, and the three algorithms)
- 2015-04-16 13:52:33下载
- 积分:1
-
eq_cct_induction_motor
equivalant circuit of induction motor
- 2014-02-26 01:44:34下载
- 积分:1
-
BGA
BGA Binary Genetic Algorithm Matlab Code
- 2009-05-07 15:09:06下载
- 积分:1
-
IHI0033A_amba_3_ahb_lite_protocol_v1_0_spec
ahb lite protocol describes the simple version of ahb protocol.
- 2014-08-27 17:27:15下载
- 积分:1