尽管神经网络的研究和应用已经取得巨大成功,但在网络的开发设计方面至今仍没有一套完善的理论做指导,应用中采取的主要设计方法是,在充分了解待解决问题的基础上将经验与试探相结合,通过多次改进性试验,最终选出一个较好的设计方案。下面是在开发神经网络中常用的基本方法和实用技术。
(1) 网络信息容量与训练样本数
多层神经网络的分类能力与网络信息容量相关,如果网络的权值和阈值总数nw表征网络信息容量,研...
分类:
其他好文 时间:
2015-08-01 22:10:14
阅读次数:
755
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary ...
分类:
其他好文 时间:
2015-08-01 22:08:36
阅读次数:
141
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
思路:很基础的一个题,DFS即可。代码如下:
/**
* Defin...
分类:
其他好文 时间:
2015-08-01 22:08:25
阅读次数:
140
如图所示 水区被占领
现在很多网站也经历过被 注册机,发贴机,乱炸,是很可恨的事.但是您想想,为什么注册机,发贴机会这么轻易就可以注册和发贴呢?这是为什么,其实很简单,注册中的验证码 过于简单,等因素。 请看 http://passport.csdn.net/ajax/verifyhandler.ashx
这就是注册的验证码,能不能加点难度呢?请你们看看这个验证码
(注:这是一个某程序...
分类:
其他好文 时间:
2015-08-01 22:07:56
阅读次数:
135
Given preorder and inorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
思路:首先根据前序遍历得到根节点,然后在中序遍历中得到根节点的位置,左边的为左子树,右边的为右子树。
然后再...
分类:
其他好文 时间:
2015-08-01 22:09:32
阅读次数:
138
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
思路:这题和上题类似,前序第一个是根节点,后序遍历最后一个是根节点。其余步骤类似。
代码如下:
/**
*...
分类:
其他好文 时间:
2015-08-01 22:10:16
阅读次数:
150
其实这只是一道题的题解= =;
博主太弱不会T1T3;
然而我还是要吐槽一下,T2难道你们就没有一点写数据结构的心情吗!
T1:
留坑(不太可能填);
T2:
题意:
给出大小为n的一个四维点集,和m次询问;
每次询问给出一个点,求四维坐标均小于等于这个点的集合大小;
n,m
题解:
看到这题的第一反应是排序乱搞,noip难度应该随便玩玩就过了嘛(笑)...
分类:
其他好文 时间:
2015-08-01 22:09:05
阅读次数:
444
如果你是一个Android开发者,你至少听说过的Dalvik的蛋疼的64K方法限制。概括地说,在一个DEX文件,你可以调用很多的方法,但你只能调用它们最前面的65,536个 ,因为这是在方法调用集合中的所有的空间了,你有。如果你的源代码和炫酷的库中方法超过了这个限制。看这篇文章就对了。...
分类:
其他好文 时间:
2015-08-01 22:06:42
阅读次数:
184
吃糖果
Problem Description
HOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种,这样;可是Gardon不知道是否存在一种吃糖果的顺序使得他能把所有糖果都吃完?请你写个程序帮忙计算一下。
Input
第一行有一个整数T,接下来T组...
分类:
其他好文 时间:
2015-08-01 22:07:49
阅读次数:
154
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7},
...
分类:
其他好文 时间:
2015-08-01 22:07:00
阅读次数:
129
HNOI 2004 打砖块 动态规划...
分类:
其他好文 时间:
2015-08-01 22:06:17
阅读次数:
409
www.yuanquanshuqian.com
源泉书签是一款带层级标签、可添加笔记、可全文搜索的网络书签,期望给您提供稳定的的、方便的在线书签服务...
分类:
其他好文 时间:
2015-08-01 22:06:39
阅读次数:
121
注解实现的页面跳转其特点是不用配置文件struts.xml因而可以实现零配置。
action类:
package cn.mrcast.action;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org....
分类:
其他好文 时间:
2015-08-01 22:07:07
阅读次数:
144
Question
Implement int sqrt(int x).
Compute and return the square root of x.
My Solution
class Solution {
public:
int mySqrt(int x) {
/**
* binary search a from [0, x], where a^2 = x....
分类:
其他好文 时间:
2015-08-01 22:06:03
阅读次数:
87
HDU 4355
思路:三分法求f(x)极值。
f(x)是指位置为x时的愤怒值之和,是一个三次函数,且存在极值点使f(x)最小。
code:
/*
* @author Novicer
* language : C++/C
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include...
分类:
其他好文 时间:
2015-08-01 22:07:20
阅读次数:
106
命运
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 12611 Accepted Submission(s): 4401
Problem Description
穿过幽谷意味着离大魔王lemon已经无限接近了!
可谁能想到,...
分类:
其他好文 时间:
2015-08-01 22:05:20
阅读次数:
99
转载请注明出处,谢谢http://blog.csdn.net/acm_cxlove/article/details/7854526
by---cxlove
题目:输出最大最小表示是从哪一位开始,而且输出数量
http://acm.hdu.edu.cn/showproblem.php?pid=3374
数量好求,肯定是字符串的循环节,循环节可以直接通过KMP的Ne...
分类:
其他好文 时间:
2015-08-01 22:06:10
阅读次数:
104