自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(45)
  • 资源 (8)
  • 收藏
  • 关注

原创 ALDS1_10_C Longest Common Subsequence

#include <iostream>#include <string>#include <algorithm>using namespace std;static const int N = 1000;int lcs (string x, string y) { int m = x.size(); int n = y.size...

2019-04-17 11:40:06 491

原创 Quick Sort (C++)

#include <iostream> #include <vector>using namespace std;int partition(vector<int>& num, int first, int last) { int k = first; int ntemp = num[last]; //这里设置...

2019-04-16 16:07:46 667

原创 字符串分隔

链接:https://www.nowcoder.com/questionTerminal/d9162298cb5a437aad722fccccaae8a7来源:牛客网#include <iostream>#include <string>using namespace std;void fuck(string str) { if (st...

2019-04-03 16:18:06 621

原创 背包问题

01背包 完全背包 多重背包01背包有N件物品和一个容量为C的背包。 第i件物品的 重量为 c[i] , 价值为 v[i]。 求解将哪些物品装入背包可使价值总和最大。思路: 将前i件物品放入容量为C的背包中, 若只考虑第i件物品的策略 (放或者不放), 那么就可以转化为 一个只 牵扯 前 i-1 件物品的问题。定义状态: f[i][C] = max{f[i - 1][C], f[...

2019-04-03 09:38:52 488

原创 二叉树的重建

class Solution {public: struct TreeNode* reConstructBinaryTree(vector<int> pre, vector<int> in) { int inlen = in.size(); if (inlen == 0) return NULL; vector<int> le...

2019-03-26 10:38:31 441

原创 剑指offer ——顺时针打印矩阵

class Solution {public: vector<int> printMatrix(vector<vector<int> > matrix) { int rows = matrix.size(); int cols = matrix[0].size(); vector<int> result; if (cols ==...

2019-03-20 10:45:44 348

原创 剑指offer ——删除链表中重复的节点

解法:在重新定义链表指针域的同时, 使用 delete 释放了已删除节点的内存空间。class Solution {public: ListNode* deleteDuplication(ListNode* pHead) { if (pHead == nullptr || pHead-&gt;next == nullptr) { //平凡列表无重复,确保列表...

2019-03-15 17:06:13 374

原创 剑指offer 面试题9: 用两个栈实现队列

class Solution{public: void push(int node) { stack1.push(node); } int pop() { if (stack2.empty()) { while (!stack1.empty()) { stack2.push(stack1.top()); stack1.pop(); } //i...

2019-03-11 09:27:16 386

原创 二叉树的遍历 (C++实现)

本文涉及三种常见的遍历方式 : 先序遍历、中序遍历、后序遍历,以及用C++实现的非递归版本代码。首先我们定义一下二叉树结点类struct BinaryTreeNode { int val; BinaryTreeNode* leftchild; BinaryTreeNode* rightchild; BinaryTreeNode(int const&amp; _val, Bina...

2019-03-06 22:05:28 30148 4

转载 c_str()

转载于:https://blog.csdn.net/chaipp0607/article/details/75371149atoi()是C语言中的字符串转换成整型数的一个函数,在例子的代码里面会用到,其函数原型为:int atoi(const char *nptr);下面是一个C语言的代码,可以正常运行:#include &lt;stdio.h&gt;#include &l...

2019-03-04 10:15:36 2986

转载 C++ 11多线程总结

https://www.ctolib.com/topics-130786.html

2019-03-03 19:39:24 337

原创 C++11 多线程 ——detach、join

#include &lt;iostream&gt;#include &lt;thread&gt;void function_1() { std::cout &lt;&lt; "I'm function_1()" &lt;&lt; std::endl;}int main() { std::thread t1(function_1); // do other th...

2019-03-03 10:54:04 1014

转载 C++ main函数中参数argc和argv含义及用法

本文转载于:https://blog.csdn.net/dcrmg/article/details/51987413argc 是 argument count的缩写,表示传入main函数的参数个数;argv 是 argument vector的缩写,表示传入main函数的参数序列或指针,并且第一个参数argv[0]一定是程序的名称,并且包含了程序所在的完整路径,所以确切的说需要我们输入的m...

2019-02-25 15:30:21 729

原创 Function Pointer

这篇一看就懂   https://www.learncpp.com/cpp-tutorial/78-function-pointers/

2019-01-22 16:34:32 370

原创 pointer to pointer/reference to pointer

      When we use "pass by pointer" to pass a pointer to a function, only a copy of the pointer is passed to the function. We can say "pass by pointer" is passing a pointer by value. In most cases, th...

2019-01-20 11:26:55 679

原创 数据结构——列表

1.列表节点ADT接口操作接口 功能 data() 当前节点所存数据对象 pred() 当前节点前驱节点的位置 succ() 当前节点后继节点的位置 insertAsPred(e) 插入前驱节点,存入被引用对象e,返回新节点位置 insertAsSucc(e) 插入后继节点,存入被引用对象e,返回新节点位置 typedef int ...

2019-01-17 09:23:15 1530

原创 数据结构————队列

1.ADT接口 操作 功能 size() 报告队列的规模(元素总数) empty() 判断队列是否为空 enqueue(e) 将e插入队尾 dequeue() 删除队首对象 front() 引用队首对象  ...

2019-01-15 17:42:40 446

原创 数据结构————栈

1.ADT接口操作接口 功能 empty() 判断栈是否为空 size() 报告栈的规模 push(e) 将e插至栈顶 pop() 删除栈顶对象 top() 引用栈顶对象  

2019-01-15 17:16:54 387

原创 数据结构——向量

 1.ADT支持的操作接口 操作接口 功能 适用对象 size() 报告向量当前的规模(元素总数) 向量 get(r) 获取秩为r的元素 向量 put(r, e) 用e替换秩为r元素的值 向量 insert(r, e) e作为秩为r元素插入,原后继元素依次后移 向量 remove(r) 删除秩为r的元...

2019-01-10 18:48:38 1824

转载 常函数

转自 :https://blog.csdn.net/shixiaoguo90/article/details/25658059    类的成员函数后面加 const,表明这个函数不会对这个类对象的数据成员(准确地说是非静态数据成员)作任何改变。    在设计类的时候,一个原则就是对于不改变数据成员的成员函数都要在后面加 const,而对于改变数据成员的成员函数不能加 const。所以 con...

2019-01-10 15:08:23 6464

原创 数据结构与算法书目

要补基础了,大概浏览了以下四本书:数据结构与算法分析 C++语言描述  4th  这本书内容不错...但是这个翻译水平是我见过最烂的...看原版吧这本。算法导论  数学推导比较多,伪代码实现, 感觉应该在阅读其他书籍入门后再来看大话数据结构   C语言描述,代码质量不行...  厕所读物 可看可不看邓俊辉  数据结构 (C++语言版) 比较了上面几本书之后,发现这本是真不错,配合习...

2019-01-10 09:32:08 347

原创 Performance metrics of place recognition

     The performance of the place recognition algorithm is typically evaluated according to precision, recall metrics, and precision-recall curve. The matches consistent with the ground truth are re- ...

2019-01-04 09:47:35 349

原创 DPI与PPI

详细信息请阅读 点击这里PPI:Think of the PPI input as a way to adjust the physical size – not the resolution – of the eventual print-out. Decreasing the PPI, thus increasing the size of the printout, may seem...

2019-01-02 19:13:01 810

原创 InternalError: GPU sync failed

在jupyter notebook中用gpu跑神经网络时遇到这个问题,解决方法,重启ipython notebook即可。难道因为开了太多python kernel导致gpu资源分配不处来了? 嗯...这应该是jupyter notebook特有的问题吧。...

2018-12-27 14:26:43 12285 4

原创 AttributeError: '_NamespacePath' object has no attribute 'sort

在使用from keras import optimizers时出现该错误修正方法:wget https://bootstrap.pypa.io/ez_setup.py -O - | python 

2018-12-26 09:21:30 1810 1

原创 AttributeError: 'module' object has no attribute 'to_rgba'

 import matplotlib.pyplot as pltimport numpy as npx = np.arange(20)y = x**2plt.plot(x, y)在jupyter notebook中使用matplotlib画图出现这个错误,修正方法:sudo pip install matplotlib==2.2.0 ...

2018-12-26 08:46:53 2207

原创 cv::FileStorage

参考链接:https://blog.csdn.net/wonder233/article/details/52810458                    https://blog.csdn.net/coma_6512/article/details/78232649成员函数operator &lt;&lt;FileStorage::openFileStorage::isOp...

2018-12-05 09:04:57 6179

转载 UML类图

https://www.cnblogs.com/shindo/p/5579191.html

2018-12-03 09:34:07 252

原创 slam十四讲g2o问题

1. 3d2d程序的CMakeLists.txt写法cmake_minimum_required(VERSION 2.8)project(features)set(CMAKE_CXX_FLAGS "-std=c++11")list( APPEND CMAKE_MODULE_PATH /home/zhhp/g2o/cmake_modules )find_package(OpenCV ...

2018-11-20 18:35:48 1223

原创 Undefined reference to symbol '_ZN5boost6system15system_categoryEv'

 在编译orb-slam2 的examples时 rgbd stero总是 failed解决:https://github.com/raulmur/ORB_SLAM2/issues/494 就改这里就行了I only put -lboost_system inside set(LIBS...) Could show us the error? And your CMakeLis...

2018-11-14 11:27:27 1745

原创 Ubuntu16.04 ros-kinetic下安装kinect驱动

环境:独显gtx1050ti 已安装Nvidia-390显卡驱动OS: Ubuntu 16.04.5 LTS x64ROS Distro: KineticMachine: HP-OMEN 暗影精灵4 这篇博客的起因是 roslaunch openni_launch openni.launch 后出现错误:... logging to /home/zhhp/.ros/l...

2018-11-13 09:37:04 1939 3

转载 appstream

https://www.helplib.com/ubuntu/article_155416

2018-11-12 17:45:53 981

原创 catkin_make与cmake

catkin_make 实际和下面的指令是等效的$ cd ~/catkin_ws$ cd src$ catkin_init_workspace$ cd ..$ mkdir build$ cd build$ cmake ../src -DCMAKE_INSTALL_PREFIX=../install -DCATKIN_DEVEL_PREFIX=../devel$ make ...

2018-11-07 14:15:16 702

原创 UEFI引导ubuntu16.04 的Nvidia显卡驱动安装

参考原文:https://blog.csdn.net/sizaif/article/details/79399130 写在前面:我用的是Ubuntu16.04.5版本(官网下载)笔记本是暗影精灵4, nvidia显卡为1050ti 因为笔记本型号很新,所以4.10以前的内核版本都不能很好的驱动硬件,为了让笔记本的性能发挥出来我决定安装新内核版本的Ubuntu系统(其实最开始是因为...

2018-11-03 11:53:55 4128 2

原创 RGBD SLAM V2 环境搭建

我的环境是ubuntu14.04    +    ROS indigoopencv 2.4.11  编译安装完opencv后注意要配置一下在GitHub上下载某个特定版本的源码时 选择你要的branch,然后 download zip在主文件夹下建立一个 myslam文件夹,把相关包都放在这里  安装包的过程cd到目录下mkdir buildcd buildcm...

2018-08-17 09:37:35 425

原创 Ubuntu升级git版本

安装了VSCode,提示我git版本需要升级。步骤如下# To get the very latest version of git, you need to add the PPA (Personal Package Archive) from the Ubuntu Git Maintainers Team to your Software Source list. Do that with t...

2018-07-05 16:38:44 1185

原创 从零开始的ORB-SLAM2生活

在http://vision.in.tum.de/data/datasets/rgbd-dataset/download上下载并解压好数据集后 cd到数据集的目录,mv rgbd_dataset_freiburg1_xyz /usr/slam_tools然后进入ORB_SLAM2目录sudo ./Examples/Monocular/mono_tum Vocabulary/ORBvoc.txt ...

2018-07-02 20:45:37 3068 12

原创 Ubuntu14.04 安装intel无线网卡驱动(含升级内核)

新安装的14.04 没有无线网卡驱动,我在win10下看到网卡型号是 intel的9560, 在intel官网看到9560驱动需要 kernel的 版本 是4.14+  https://www.intel.com/content/www/us/en/support/articles/000005511/network-and-i-o/wireless-networking.ht...

2018-07-01 20:28:25 8533 8

原创 UEFI模式 在 GPT双硬盘上安装 win10 + ubuntu双系统

笔记本型号:暗影精灵4(固态+机械硬盘)固态硬盘安装win10(用微软官方工具安装)机械硬盘安装ubuntu14.04我的笔记本硬盘是GPT的,而百度出来的装双系统的方法大多是MBR的硬盘,所以走了很多坑。这里把需要注意的事情简单贴出来,以便有需要时查阅。一、安装Ubuntu1.设置bios  关闭secure boot  (fast boot 实际上不需要关,对双系统没有影响)2.在机械硬盘上划...

2018-07-01 20:02:37 4353 2

原创 编译opencv cmke报错

编译opencv时 若 cmake . 命令报错 You should create a separate directory for build files.解决方法:1.删除Cmake Cache.txt(名字可能记错了)                    2.创建一个build目录 , 在此目录下 make  .. 即可完成编译。...

2018-05-01 15:10:21 1121

计算机科学精粹

本书面向所有对计算机科学感兴趣的读者,以浅显易懂的语言和简明扼要的形式介绍计算机科学领域的重要知识点,尽量少涉及学术概念,着力将抽象理论具体化,复杂问题简单化,既适合计算机专业技术人员查漏补缺基本理论,也适合普通读者了解计算思维。

2019-01-25

程序员的数学(全三册)

如果数学不好,是否可以成为一名程序员呢?答案是肯定的。 本书最适合:数学糟糕但又想学习编程的你。没有晦涩的公式,只有好玩的数学题。帮你掌握编程所需的“数学思维”。日文版已重印14次!编程的基础是计算机科学,而计算机科学的基础是数学。因此,学习数学有助于巩固编程的基础,写出更健壮的程序。本书面向程序员介绍了编程中常用的数学知识,借以培养初级程序员的数学思维。读者无需精通编程,也无需精通数学,只需具备四则运算和乘方等基础知识,就可以阅读本书。书中讲 解了二进制计数法、逻辑、余数、排列组合、递归、指数爆炸、不可解问题等许多与编程密切相关的数学方法,分析了哥尼斯堡七桥问题、少年高斯求和方法、汉诺塔、斐波那契数列等经典问题和算法。引导读者深入理解编程中的数学方法和思路。本书还对程序员和计算机的分工进行了有益的探讨。读完此书,你会对以程序为媒介的人机合作有更深刻的理解。

2019-01-04

Use R!系列教程

R语言之Use R!系列 a beginer's Guide to R (use R).pdf7.21 MB Analysis of Phylogenetics and Evolution with R (use R).pdf1.07 MB Applied Econometrics with R (Use R).pdf3.7 MB Applied Spatial Data Analysis with R (use R).pdf7.47 MB Applied Statistical Genetics with R (use R).pdf2.47 MB A Primer of Ecology with R (use R).pdf7.82 MB Bayesian Computation with R (use R).pdf1.72 MB Bioconductor Case Studies (use R).pdf5.92 MB Data Manipulation with R (use R).pdf1.1 MB Dynamic Linear Models with R (use R).pdf4.74 MB Functional Data Analysis with R and MATLAB (use R).pdf4.48 MB ggplot2 Elegant Graphics for Data Analysis (use R).PDF12.48 MB Interactive and Dynamic Graphics for Data Analysis with R and GGobi (use R).pdf5.21 MB Introducing Monte Carlo Methods with R (use R).pdf8.97 MB Introduction to Probability Simulation and Gibbs Sampling with R (use R).pdf10.65 MB Introductory Time Series with R (use R).pdf5.74 MB Lattice Multivariate Data Visualization with R (use R).pdf9.26 MB Morphometrics with R (use R).pdf4.08 MB Nonlinear Regression with R (use R).pdf1.55 MB R through Excel (use R).pdf23.21 MB Statistical Methods for Environmental Epidemiology with R (use R).pdf8.77 MB Wavelet Methods in Statistics with R (use R).pdf11.93 MB

2018-01-13

数据库系统概念(原书第六版带书签)带书签

数据库系统概念(原书第六版)带书签 作者: (美)Abraham Silberschatz / (美)Henry F.Korth / (美)S.Sudarshan 原作名: Database System Concepts, 6E

2018-01-13

OpenCV3+Qt5视频处理GUI程序

本程序使用Qt5设计GUI界面,OpenCV3做本地视频文件的读取与处理工作。 可执行程序在bin中。 关于工程目录结构与环境配置的相关内容请参考博客http://blog.csdn.net/zhhp1001/article/details/79004559 http://blog.csdn.net/zhhp1001/article/details/79025717

2018-01-10

程序员跳槽全攻略

槽,反正迟早是要跳的;书,那是越早读越好的。 和那些职场鸡汤不同,本书从价值论开始,引入职业画布,从九大方面为你讲解;有分析数据、有简历模板、有书写工具、有技能树图,堪称一本公司老板和HR最害怕你看到的跳槽百科。 作者@Easy为互联网人才拍卖网站JobDeer.com和程序员直投网站快简历创始人,在过去一年里,阅读过上万份技术简历,帮数千位程序员找到工作,在技术求职和招聘方面有丰富的实践经验。

2018-01-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除