peak

【原创】leetCodeOj --- Find Peak Element 解题报告

China☆狼群 提交于 2019-12-02 11:03:53
题目地址: https://oj.leetcode.com/problems/find-peak-element/ 题目内容: A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1] , find a peak element and return its index. The array may contain multiple peaks, in that case return the index to any one of the peaks is fine. You may imagine that num[-1] = num[n] = -∞ . For example, in array [1, 2, 3, 1] , 3 is a peak element and your function should return the index number 2. click to show spoilers. Note: Your solution should be in logarithmic complexity. 方法: 有两点需要注意的: 0、复杂度要为O(log n) 1、注意审题 我第一次做

Find Peak Element

萝らか妹 提交于 2019-12-02 11:01:20
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its index. The array may contain multiple peaks, in that case return the index to any one of the peaks is fine. You may imagine that num[-1] = num[n] = -∞. For example, in array [1, 2, 3, 1], 3 is a peak element and your function should return the index number 2. 这道题是水题,注意边界条件即可。 C++ Code: class Solution { public : int findPeakElement( const vector < int > &num) { if (num.size() == 1 ) { return 0 ; } else if (num.size() == 2 ) { return num[ 0 ] > num[ 1

浅谈Silver Peak 出品的SD-WAN产品

喜夏-厌秋 提交于 2019-11-28 14:16:11
最近接触到SD-WAN项目,选用的是Silver Peak产品,原来我在70-743中接触过微软的SD-WAN产品,感觉微软也是用一个类似的硬件盒子,接到你的互联网的前端,把公司内部的虚机平台的VLAN信息和Azure平台做一个很好的管理。 在微软的产品中,需要配置SDN网络控制器,SDN的SLB,SDN RS网关,当然还可以做QOS控制SDN虚拟网络带宽等。 微软的SDN有两种管理方式,一个是Powershell的,一个是通过System Center VMM进行管理。 在百度上,只能找到关于silver peak的一页资料,呵呵,几乎为零的技术支持。当然对于这个产品的理解只能在使用过程中总结,管理界面应该是Web样子的。就是假设我们通过一个小盒子样的前端,通过互联网给接入到一个专有的网络中,实际感觉就是不是MPLS专线好用,云平台。 以下就是这个产品的介绍,目前我就只能理解到这一点,以后有实际经验再更新吧。 来源: 51CTO 作者: raincity 链接: https://blog.51cto.com/shadingyu/2453097

ChIP-seq基本流程及工具

你说的曾经没有我的故事 提交于 2019-11-28 02:59:02
ChIP-seq数据分析整理 1.Alignment 2.Peak detection 3.Peak annotation 1. GO analysis 2. Pathway analysis 4.Differential analysis 5.Peak gene 6.Pathway analysis 7.Data visualization 1.Alignment base calling——Off-Line Basecaller software (OLB V1.8.0). Solexa CHASTITY quality filter【质量控制】 http://www.genomics.agilent.com/article.jsp?pageId=2213 BOWTIE software (V2.1.0) 2.Peak detection MACS v1.4 p-value 10^-5 3.Peak annotation UCSC RefSeq Peaks annotation TSS distribution heatmap Peak Distribution around TSS peak Distribution Pie Charts Peaks in promoter 1. GO analysis www.geneontology.org Biological

Chip-seq peak annontation

喜夏-厌秋 提交于 2019-11-28 02:58:52
Chip-seq peak annontation /*--> */ /*--> */ /*--> */ /*--> */ /*--> */ /*--> */ /*--> */ /*--> */ Chip-seq peak annontation PeRl narrowPeak/boardPeak narrowPeak/boardPeak 是 ENCODE 可提供下载的两种 Chip-seq 经过参考人类基因组mapping后的关于peak的数据. 其他类型的seq数据储存个数可以参看 FAQformat narrowPeak 数据按照以下规则储存: 1. string chrom: "Reference sequence chromosome or scaffold" 2. uint chromStart: "Start position in chromosome" 3. uint chromEnd: "End position in chromosome" 4. string name: "Name given to a region (preferably unique). Use . if no name is assigned" 5. uint score: "Indicates how dark the peak will be displayed in the

162. Find Peak Element(js)

不问归期 提交于 2019-11-27 00:24:45
162. Find Peak Element A peak element is an element that is greater than its neighbors. Given an input array nums , where nums[i] ≠ nums[i+1] , find a peak element and return its index. The array may contain multiple peaks, in that case return the index to any one of the peaks is fine. You may imagine that nums[-1] = nums[n] = -∞ . Example 1: Input: nums = [1,2,3,1] Output: 2 Explanation: 3 is a peak element and your function should return the index number 2. Example 2: Input: nums = [1,2,1,3,5,6,4] Output: 1 or 5 Explanation: Your function can return either index number 1 where the peak