-
分治策略-最邻近点对
给定平面上n个点,找其中的一对点,使得在n个点的所有点对中,该点对的距离最小。严格地说,最接近点对可能多于1对。这里只限于找其中的一对。
- 2022-05-06 00:51:35下载
- 积分:1
-
Joseph used to solve problems
用在解决约瑟夫问题-Joseph used to solve problems
- 2022-08-24 18:48:32下载
- 积分:1
-
信号 triangulaire
信号交替算法方法来绘制信号三角: 积极和消极。这是因为正弦电压被比作一个固定电压。
- 2022-04-30 18:27:49下载
- 积分:1
-
这是一些数值算法的源程序,包括非线形方程的解法。(二分法,牛顿法)。线性代数方程组数值解法(包括,消去法,迭代法)...
这是一些数值算法的源程序,包括非线形方程的解法。(二分法,牛顿法)。线性代数方程组数值解法(包括,消去法,迭代法)-This is some numerical algorithm of the source, including non-linear equations method. (Dichotomy, Newton). Linear algebra equations Numerical Solution (including, elimination, iteration)
- 2022-05-19 06:04:19下载
- 积分:1
-
搜索引擎的评估准则
应用背景本代码主要实现搜索引擎的几个评估准则,包括NDCG@K、DCG@K、P@K、RR@K、ERR@K这五类评估准则的实现,这代码主要是根据RankLib中的评估准则代码以scala的形似展现出来,相对于RankLib中的 评估代码而言,本代码短小,可读性强,可移植性大,关键技术本文使用 的scala实现,对NDCG@K、DCG@K、P@K、RR@K、ERR@K这五类评估准则的实现,跟RankLib中的评估公式保持一致
- 2022-07-14 14:24:01下载
- 积分:1
-
图像缩放(线性插值法)
图像缩放(线性插值法)-image scaling (linear interpolation)
- 2022-04-06 22:17:38下载
- 积分:1
-
边界元法求磁场的计算代码,主要计算部分有注释
边界元法求磁场的计算代码,主要计算部分有注释-Boundary element method code in order to calculate the magnetic field, the main computing part of the annotated
- 2022-01-26 03:24:01下载
- 积分:1
-
This is a program that generate a universe of chromas females and males, crosses...
This a program that generate a universe of chromas females and males, crosses men with women and makes the best chromosome of generation-This is a program that generate a universe of chromas females and males, crosses men with women and makes the best chromosome of generation
- 2022-11-11 12:50:03下载
- 积分: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
-
百钱买百鸡算法设计和分析
应用背景方法一:伪代码输入:n只鸡的个数 输出:公鸡、母鸡和小鸡的个数1、初始化解的个数count=0; 2、循坏变量从x从0~n/5(取整); 2.1循环变量y从0~n/3(取整); 2.1.1 循环变量z从0~n; 2.1.2 如果5*x+3*y+z/3==n && x+y+z==n,则count++;输出x、y、z的值; 2.1.3 y++;
- 2022-03-20 10:38:58下载
- 积分:1