-
一种采用divideandconquer closestpair代码
a ClosestPair code writen with divideandconquer
- 2022-07-07 20:43:45下载
- 积分:1
-
设有n个人围做一圈,现从某个人开始报数,数到m的人出列,接着从出列的下一个人开始重新报数,数到m的人又出列,如此下去,直到所有人都出列为止。运用循环单链表解决约...
设有n个人围做一圈,现从某个人开始报数,数到m的人出列,接着从出列的下一个人开始重新报数,数到m的人又出列,如此下去,直到所有人都出列为止。运用循环单链表解决约瑟夫环问题。- Is equipped with n personally to encircle makes, presently
starts from some person to count off, leaves ranks the number to the m
person, meets from the next person which leaves ranks is starting reto
count off, leaves ranks the number to the m person, continue like
this, all leaves ranks until all people. Using circulates Shan
Lianbiao to solve the Joseph link problem.
- 2022-02-26 00:46:58下载
- 积分:1
-
各种高效率排序总结。不看后悔。
冒泡排序 ,堆排序,快速排序,二分法排序(折半排序),归并排序,选择排序,
- 2022-02-15 04:22:39下载
- 积分:1
-
C++实现基于用户的协同过滤
算法过程:1).读入数据,将数据用user_brands存起来,同时建立userid_id,再建立id_brands 2).遍历id_brands得到物品-用户倒排表brand_ids,根据倒排表得到用户的相似矩阵sim_mat 3).为每个用户推荐产品: 3.1).求用户u买过的brand和所有brand的差集得到用户u没有买过的物品集合brand_unused; 3.2).用户u对每一个没用过的物品i的兴趣p(u,i): 3.2.1).找到与用户u最近的k个用户 对于每一个没用过的物品i: 3.2.2).找出这k个用户中对物品i有过行为的用户v[]√ 3.2.3).将用户u和v[j]的兴趣相似度累加 3.3).取前m个最感兴趣的brand推荐给用户; 代码:UCF.cc(用户协同过滤核心代码):#include #include #include #include #include #include #include #include #include #include
- 2023-03-01 07:45:04下载
- 积分:1
-
旋转的正方体
旋转的正方体,可以自己控制 旋转的正方体 的旋转方向 调用4个函数就行
- 2023-04-20 04:55:03下载
- 积分:1
-
蒙特卡罗法 很适合学习 数学建模 和 数学应用的人
蒙特卡罗法 很适合学习 数学建模 和 数学应用的人-Monte Carlo method is very suitable for application of mathematics and mathematical modeling of the person
- 2022-06-14 11:13:24下载
- 积分:1
-
自己写的将文件处理为base64流
自己写的,旨在帮助大家理解文件流的处理过程。生成的base64流我将其写入根目录下的txt文档,文档尾部,添加了源文件的长度,所以他也不完全是base64流,但是对你们处理文件有很多的帮助。我的邮箱是heyuxistock@163.com,大家有不懂,就给我 邮件。
- 2022-08-09 02:43:45下载
- 积分:1
-
c++实现的对电话进行计费的系统,涉及到闰年平年的判断及夏时制冬时制的转换问题...
c++实现的对电话进行计费的系统,涉及到闰年平年的判断及夏时制冬时制的转换问题-c achieve the right telephone billing system, which involves non-leap year of a leap year in the judgment and daylight saving time in winter when the system conversion,
- 2022-04-26 10:49:36下载
- 积分:1
-
opencv与halcon图像格式互相转换
C++代码:opencv图像格式Mat,iplImage与halcon图像格式Hobeject的互相转换代码。包括:IplImage转Hobject,Mat转Hobject,Hobject转Mat,Hobject转IplImage。适合学习opencv与halcon图像处理的人员使用,希望对大家有帮助。
- 2023-07-31 11:45:02下载
- 积分:1
-
All relevant data mining algorithms and theory, there are detailed instructions,...
所有相关的数据挖掘算法和理论,都有详细的说明,有兴趣的可以下一步做
- 2023-01-27 06:20:05下载
- 积分:1