![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设计算法解决问题
文章平均质量分 58
fcyh
A man must be on his own
展开
-
增长模型—评分卡模型
一、评分卡模型PS:核心点在于我们需要一个判别指标来对数据进行打标签分类1、项目简介:信用评分技术是一种应用统计模型,其作用是对贷款申请人做风险评估分值的方法。在互金公司等各种贷款业务机构中,普遍使用信用评分,对客户实行打分制,以期对客户有一个优质与否的评判。评分卡主要分为三类A卡(申请评分卡)、B卡(行为评分卡)、C卡(贷后评分卡)。我们主要讨论的是A卡即申请评分卡,用于贷前审批阶段对借款申请人的量化评估;2、评分卡原理:申请评分卡是一种统计模型,它可基于对当前申请...原创 2020-09-16 20:57:16 · 1287 阅读 · 0 评论 -
经典排序算法详细总结。
经典排序算法详细总结。 前言 查找和排序算法是算法的入门知识,其经典思想可以用于很多算法当中。因为其实现代码较短,应用较常见。所以在面试中经常会问到排序算法及其相关的问题。但万变不离其宗,只要熟悉了思想,灵活运用也不是难事。一般在面试中最常考的是快速排序和归并排序,并且经常有面试官要求现场写出这两种排序的代码。对这两种排序的代码一定要信手拈来才行。还有插入排序、冒泡排序、原创 2017-12-15 11:17:41 · 1366 阅读 · 0 评论 -
C++实现顺序计算输入表达式的值
#include #include #include //判断字符类型需要的头文件using namespace std;int main(){ string str; l: cin>>str; char *a; strncpy(a,str.c_str(),str.length());//将输入的字符串转换为字符数组原创 2017-07-08 09:59:35 · 818 阅读 · 0 评论 -
Java实现的各种排序算法(包括冒泡,快排等)
//堆排序 不稳定import java.util.Arrays;public class HeapSort { public static void main(String[] args) { int[] a={49,38,65,97,76,13,27,49,78,34,12,64}; int arrayLength=a.length;原创 2017-07-08 09:59:38 · 370 阅读 · 0 评论 -
Java实现二分查找
public class BinarySearch { /** * 二分查找算法 * * @param srcArray 有序数组 * @param key 查找元素 * @return key的数组下标,没找到返回-1 */ public static原创 2017-07-08 09:59:41 · 319 阅读 · 0 评论 -
C++实现最少硬币兑换问题
最少硬币兑换问题#include#include using namespace std; int n,L; //n种硬币L长的数组int c[13][20];int T[13];//硬币面值int jisuan(int i,int j);int main(){ fstream file("2.1_input.txt"); //这是需要读取数据的文原创 2017-07-08 09:59:54 · 1980 阅读 · 0 评论 -
C++实现八皇后问题
C++实现八皇后问题 #include using std::cout;using std::endl;#include using std::setw;#include //非递归算法解决八皇后问题。求出可能的92种。// using std::abs;int main(){ static int queen[9]; static int count=1;原创 2017-07-08 09:59:57 · 543 阅读 · 0 评论 -
C++ 递归实现汉诺塔
C++实现汉诺塔 #include using namespace std;void move(int n,char x,char y,char z){ if(n==1) { cout"--->"endl; } else { move(n-1,x,z,y); cout"--->"endl;原创 2017-07-08 09:59:59 · 455 阅读 · 0 评论 -
C++实现 逆波兰表达式计算问题
C++实现 逆波兰表达式计算问题 #include #include string>using namespace std;class Stack{private: int size; int top; float *listArray;public: Stack(int sz=20); ~Stack(); bool push(fl原创 2017-07-08 10:00:02 · 535 阅读 · 0 评论 -
C++实现 找出10000以内的完数
C++实现 找出10000以内的完数#include int main(){ int n; // 用户输入的整数 int i; // 循环标志 printf("输入一个整数:"); scanf("%d",&n); printf("%d=",n); // n>=2才执行下面的循环 for(i=2; i){ while(原创 2017-07-08 10:00:04 · 2835 阅读 · 0 评论 -
Python递归实现汉诺塔
Python递归实现汉诺塔: def f3(n,x,y,z): if(n==1): print(x,'--->',z) else: f3(n-1,x,z,y) print(x,'--->',z) f3(n-1,y,x,z)n=int(input('请输入汉罗塔层数:'))f3(n,'X','Y','原创 2017-07-08 10:01:53 · 451 阅读 · 0 评论 -
根据无向图的边邻接矩阵求任意一点到其他所有点之间的最短路径。
根据无向图的边邻接矩阵求任意一点到其他所有点之间的最短路径。直接上代码:#include #include using namespace std;#define INFINITY 1000000000 //存储无向图中无边两点之间的距离#define MAX 500 //存储该无向图最多的点数为500long arr[MAX][MAX]; void Shortest原创 2017-07-08 10:02:28 · 3584 阅读 · 0 评论 -
m个苹果放在n个盘子里面有多少种放法?(动态规划)
m个苹果放在n个盘子里面有多少种放法?(动态规划)实现代码如下:#include using namespace std;int s(int m ,int n){ if(m==0||n==1){ return 1; } if(m<n) { return s(m,m); } if(m>=n) {原创 2017-07-08 10:02:33 · 2411 阅读 · 0 评论