码迷,mamicode.com
首页 >  
搜索关键字:strange sorting    ( 1127个结果
poj1837--Balance(dp:天平问题)
Balance Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 10773   Accepted: 6685 Description Gigel has a strange "balance" and he wants to poise it. Actually, th...
分类:其他好文   时间:2014-10-15 10:24:30    阅读次数:242
MVC中使用EF:排序,过滤,分页
原文链接:http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/sorting-filtering-and-paging-with-the-entity-framework-in-an-asp-net-mvc-appli...
分类:Web程序   时间:2014-10-10 13:41:04    阅读次数:155
1028. List Sorting (25)
这道题目主要是排序,刚开始简单写了一个代码,发现最后一个测试数据。发现超时了,sort排序用的是快排。快排平均是O(NlogN),最坏是O(N*N)。输入数据是10^5级的,最坏的情况会超过10^10,会超时。所以刚开始想用其他排序方法sort()---排序stable_sort---稳定排序hea...
分类:其他好文   时间:2014-10-10 00:17:03    阅读次数:250
Light OJ 1318 Strange Game 组合数+快速幂+分解因子
长度为l的用k种字符组成的字符串有k^l中 其中m个字符要不相同 那就是k^l*C(l, m)*(k-1)^m 有重复 要除以2 但是你mod n了 不能直接除 n不一定是素数 所以不能乘以逆元 所以我都mod 2倍的n 最后的结果再除以2 特判l = 1 和 m = 0的情况 #include #include #include using namespace std; typedef...
分类:其他好文   时间:2014-10-02 01:18:31    阅读次数:441
普林斯顿大学算法课 Algorithm Part I Week 3 排序算法复杂度 Sorting Complexity
复杂度的分析
分类:其他好文   时间:2014-10-01 21:19:01    阅读次数:171
【POJ】1094 Sorting It All Out(拓扑排序)
http://poj.org/problem?id=1094原来拓扑序可以这样做,原来一直sb的用白书上说的dfs。。。。。。。。。。。。拓扑序只要每次将入度为0的点加入栈,然后每次拓展维护入度即可。。我是个大sb,这种水题调了一早上。。#include #include #include #inc...
分类:其他好文   时间:2014-10-01 12:16:31    阅读次数:172
DirectX 9.0c游戏开发手记之RPG编程自学日志之16: Drawing with DirectX Graphics (用DirectX图形绘图)(第10-12节)
本文由哈利_蜘蛛侠原创,转载请注明出处!有问题请联系2024958085@qq.com           这一次我们继续来讲述Jim Adams 老哥的RPG编程书籍第二版第二章的第10节:Particles (粒子),第11节:Depth Sorting and Z-Buffering (深度排序和Z-缓存),以及第12节:Working with Viewports (使用视口)。这两节...
分类:Windows程序   时间:2014-09-27 11:33:00    阅读次数:355
【MongoDB】The high query operation of MongoDB(三)
1, Sort  Needless to say, mongodb also support to sort data. THe positive one means sorting by asc order and negetive means by desc. 2. Group The grammar of group: Description Of Argument:...
分类:数据库   时间:2014-09-23 02:47:33    阅读次数:267
Head First Python学习笔记(五)
一、排序的两种方式(1)原地排序(In-place sorting):按指定的顺序排列数据,然后用排序后的数据替换原来的数据,原来的数据丢失。sort(),列表的标准方法,e.g. mylist.sort()(2)复制排序(Copied sorting):按指定的顺序排列数据,然后返回原数据一个有序...
分类:编程语言   时间:2014-09-23 00:04:13    阅读次数:310
Collection of algorithm for sorting. 常见排序算法集(三) —— Quick Sort
Quick Sort...
分类:其他好文   时间:2014-09-20 16:11:39    阅读次数:256
1127条   上一页 1 ... 97 98 99 100 101 ... 113 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!