摘要: Simplex,单纯形法 基本思路:用来解决线性规划(Linear Programming, LP),其中会有松弛变量,构成初始基与初始可行解,然后通过不断计算检验数(Reduced Cost),决定出基与入基的变量,一直迭代直到检验数都非负或非正。 https://blog.csdn.net/cp 阅读全文
posted @ 2020-10-09 20:35 Heisenber9 阅读(973) 评论(0) 推荐(0) 编辑
摘要: 在跨平台写代码的时候,以前没好好总结/ \的区别,往往就是都试一试,拿个对了就OK,现在总结一下,以后也不会搞错了。 网站的地址:不管Linux还是windows,全是用 / 文件路径: Linux:一律用/,但是当目录名或者文件名有空格时,需要\来转义 Windos:一律用\ 当在windos下用 阅读全文
posted @ 2018-11-26 11:22 Heisenber9 阅读(1275) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/u014365862/article/details/73739857 注意:在OS下直接pip大概率出错 用源码编译。 先运行./build.sh 不成功的话安装gcc 或者 xcode插件 搞定后编译xgboost 阅读全文
posted @ 2018-10-31 01:42 Heisenber9 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 参考博客:https://blog.csdn.net/zw__chen/article/details/79374467、http://www.bubuko.com/infodetail-2730767.html 注意事项:1、Tensorflow(CPU)与Tensorflow(GPU)不能共存, 阅读全文
posted @ 2018-08-18 01:35 Heisenber9 阅读(2193) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to 阅读全文
posted @ 2018-07-31 13:29 Heisenber9 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题目一 Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives t 阅读全文
posted @ 2018-07-30 14:02 Heisenber9 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 题目 Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exa 阅读全文
posted @ 2018-07-28 14:25 Heisenber9 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题目 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes con 阅读全文
posted @ 2018-07-25 12:01 Heisenber9 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have 阅读全文
posted @ 2018-07-25 11:44 Heisenber9 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 题目 0~n-1这n个数字排成一个圆圈,从0开始,每次删除第m个数字,求出圆圈里剩下的最后一个数字 思路 直接用数组模拟圆圈,模拟删除的过程 阅读全文
posted @ 2018-07-22 22:39 Heisenber9 阅读(142) 评论(0) 推荐(0) 编辑