码迷,mamicode.com
首页 > 其他好文
运算放大器
一、计算:运算放大器中涉及的虚短虚断: 题外 uO=Aou_O=A_od_d(u+?u?_+-u_-) AoA_od_d是开环差模电压增益 虚短虚断的条件: 将运放视为理想运放 当运放工作在线性区时 题外 理想运放的重要特点: 开环差模电压增益AoA_od=∞_d=∞ 差模输入电阻rir_id=∞_d=∞ 输出电阻ro=0r_o=...
分类:其他好文   时间:2015-04-13 19:05:57    阅读次数:171
题目1120:全排列
题目描述: 给定一个由不同的小写字母组成的字符串,输出这个字符串的所有全排列。 我们假设对于小写字母有'a' 输入: 输入只有一行,是一个由不同的小写字母组成的字符串,已知字符串的长度在1到6之间。 输出: 输出这个字符串的所有排列方式,每行一个排列。要求字母序比较小的排列在前面。字母序如下定义: 已知S = s1s2...sk , T = t1t2...tk,则S ...
分类:其他好文   时间:2015-04-13 19:06:14    阅读次数:131
【精】表格(UITableView)总结(1):介绍与基础实现
【精】表格(UITableView)总结(1):介绍与基础实现...
分类:其他好文   时间:2015-04-13 19:05:32    阅读次数:110
田忌赛马
田忌赛马 时间限制:3000 ms  |  内存限制:65535 KB 难度:3 描述Here is a famous story in Chinese history. "That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to...
分类:其他好文   时间:2015-04-13 19:05:43    阅读次数:135
leetcode || 82、Remove Duplicates from Sorted List II
problem: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1...
分类:其他好文   时间:2015-04-13 19:03:43    阅读次数:121
题目1076:N的阶乘
题目描述:  输入一个正整数N,输出N的阶乘。 输入: 正整数N(0 输出:  输入可能包括多组数据,对于每一组输入数据,输出N的阶乘 样例输入: 4 5 15 样例输出: 24 120 1307674368000 来源: 2006年清华大学计算机研究生机试真题 #include #include #include //不超时的代码 u...
分类:其他好文   时间:2015-04-13 19:05:39    阅读次数:122
Number of Islands
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume...
分类:其他好文   时间:2015-04-13 19:05:29    阅读次数:138
(数位DP 1.1)hdu 2089 不要62(求一个区间[a,b]中不包含4,64的数的个数)
题目:不要62Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 23759    Accepted Submission(s): 8128Problem Description杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。杭州交通管理...
分类:其他好文   时间:2015-04-13 19:04:50    阅读次数:169
leetcode || 83、Remove Duplicates from Sorted List
problem: Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. Hid...
分类:其他好文   时间:2015-04-13 19:03:50    阅读次数:143
#pragma UNROLL 4
在图像处理程序中,你会看到类似于#pragma unroll 4这样的语句(注:在DX中,也许你会见到[unroll(3)] for(int i = 0;i < Total; i++)类似情况),现具体解释如下: ? 语法: #pragma UNROLL(n) #pragma UNROLL告诉编译器一个循环中应该展开n次(其实我觉得是告诉编译器循环展开n次是安全的),有助于对那些不容易展开的循环有更大概率的进行软件流水。 其实很多很多时候编译器会自动判断各种信息,但是这增加了冗余开销,反倒不如直接...
分类:其他好文   时间:2015-04-13 19:03:37    阅读次数:177
Uva1586 - Molar mass
问题描述: An organic compound is any member of a large class of chemical compounds whose molecules contain carbon. The molar mass of an organic compound is the mass of one mole of the organic compound...
分类:其他好文   时间:2015-04-13 19:01:49    阅读次数:149
hiho一下·41 骨牌覆盖问题·一(矩阵快速幂·费波拉契)
题意  求费波拉契数列第N项  1≤N≤100,000,000 通过矩阵的幂  可以把一维递推的时间复杂度减小到O(logN)  主要就是快速幂的思想   对于m^n  若 n=2^a1+2^a2+...+2^ak  那么 m^n = m^(2^a1) * m^(2^a2) * ... * m^(2^ak)  那么只用看n转换为二进制后哪些位为1就可以快速求出m^n了 #include...
分类:其他好文   时间:2015-04-13 19:01:35    阅读次数:124
HBase1.0.0源码分析之请求处理流程分析以Put操作为例(一)
如下面的代码所示,是HBase Put操作的简单代码实例,关于代码中的Connection connection = ConnectionFactory.createConnection(conf),...
分类:其他好文   时间:2015-04-13 19:02:42    阅读次数:120
VxWorks的移植和BSP定制过程
BSP(Board Support Package,板级支持包)的作用是针对特殊的硬件平台,为操作系统内核提供操作接口,使操作系统能够独立于底层硬件。对上层应用屏蔽具体硬件,VxWorks的高可移植性就是通过BSP实现的。 本文重点介绍将VxWorks移植到AT91RM9200芯片过程中BSP的定制过程。  1 BSP概念 BSP通常是指针对具体的硬件平台,用户所编写的启动代码...
分类:其他好文   时间:2015-04-13 19:01:53    阅读次数:299
ConcurrentSkipListMap原码解析
SkipList介绍 1. SkipList(跳表),在理论上能够在O(log(n))时间内完成查找、插入、删除操作。SkipList是一种红黑树的替代方案,由于SkipList与红黑树相比无论从理论和实现都简单许多,所以得到了很好的推广。SkipList是基于一种统计学原理实现的,有可能出现最坏情况,即查找和更新操作都是O(n)时间复杂度,但从统计学角度分析这种概率极小。使用SkipL...
分类:其他好文   时间:2015-04-13 19:01:10    阅读次数:350
LeetCode Scramble String
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great / gr ...
分类:其他好文   时间:2015-04-13 19:01:32    阅读次数:141
题目1145:Candy Sharing Game
题目描述:     A number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of candy. When the teacher blows a whistle, each student simult...
分类:其他好文   时间:2015-04-13 19:01:10    阅读次数:134
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!