Giter VIP home page Giter VIP logo

durant35.github.io's People

Contributors

durant35 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

paultcn 52git-hub

durant35.github.io's Issues

C/C++常见修饰符(inline&static&const&extern&volatile)

extern

extern可以置于变量或者函数前,以标示变量或者函数的定义在别的文件中,提示编译器遇到此变量和函数时在其他模块中寻找其定义

const

volatile

在C语言中,volatile是一个类型修饰符(type specifier),volatile修饰的变量是说这个变量可能会被意想不到地改变,这样编译器就不会去假设这个变量的值了。精确地说就是,优化器在用到这个变量时必须每次都小心地重新读取这个变量的值,而不是使用保存在寄存器里的备份

最长回文子序列

最长回文子序列

习题P179 6.7

DP习题 6.7 动态规划解答思路

http://www.geeksforgeeks.org/dynamic-programming-set-12-longest-palindromic-subsequence/

  • dp[i][j]:[i, j] 区间内字符串的最长回文子序列
  • 递推公式:
    • if (s[i] == s[j]):dp[i][j] 可以在 dp[i + 1][j - 1] 的基础上增加两个回文子序列长度
    • if (s[i] != s[j]):max(dp[i + 1][j], dp[i][j - 1]),去掉i或j其中的一个字符,然后比较两种情况下所剩的字符串哪个回文子序列长

DP习题 6.7 直接递归解答思路

http://www.geeksforgeeks.org/dynamic-programming-set-12-longest-palindromic-subsequence/

  • Let X[0..n-1] be the input sequence of length n and L(0, n-1) be the length of the longest palindromic subsequence of X[0..n-1].
  • If last and first characters of X are same, then L(0, n-1) = L(1, n-2) + 2.
    Else L(0, n-1) = MAX (L(1, n-1), L(0, n-2)).

图的匹配问题

  • 二分图最大匹配问题与匈牙利算法的核心**
    • 二分图、匹配、(非)匹配边、(非)匹配点、最大匹配、增广路径等概念
    • 匈牙利算法的核心**推导与算法正确性反证
  • 二分图的最大匹配
    • 二分图指的是这样一种图,其所有顶点可以分成两个集合X和Y,其中X或Y中任意两个在同一集合中的点都不相连,所有的边关联在两个顶点中,恰好一个属于集合X,另一个属于集合Y。
    • 给定一个二分图G,M为G边集的一个子集,如果M满足当中的任意两条边都不依附于同一个顶点,则称M是一个匹配。
    • 图中包含边数最多的匹配称为图的最大匹配。
    • 增广路径(增广轨/交错轨(路径))顾名思义是指一条可以使匹配数变多的路径。将其中所有的边进行"反色",容易发现这样修改以后,匹配仍然是合法的,但是匹配数增加了一对。另外,单独的一条连接两个未匹配点的边显然也是交错路径。
    • 最小点覆盖数: 最小覆盖要求用最少的点(X集合或Y集合的都行)让每条边都至少和其中一个点关联
  • 图的匹配问题与最大流问题(五)——计算二分图的最大匹配
    • 最大流方法计算最大匹配
      • 算法基本**
      • 算法正确性反证法
    • 匈牙利算法Java实现

ROS TF变换定义分析

static_transform_publisher x y z yaw pitch roll frame_id child_frame_id period_in_ms
static_transform_publisher x y z qx qy qz qw frame_id child_frame_id  period_in_ms 
  • 定义了T: frame_id --> child_frame_id

Linux 珠玑

  • Linux bin搜索路径
  • Linux include搜索路径
  • Linux 编译时库搜索路径
  • Linux 运行时动态库搜索路径
  • 标准Linux目录结构&含义和用途 #34
  • 特殊文件 /dev/null /dev/zero #35

[ROS] 多线程订阅消息

  • 对于一些只订阅一个话题的简单节点来说,我们使用 ros::spin() 进入接收循环,每当有订阅的话题发布时,进入回调函数接收和处理消息数据
  • 但是更多的时候,一个节点往往要接收和处理不同来源的数据,并且这些数据的产生频率也各不相同,当我们在一个回调函数里耗费太多时间时,会导致其他回调函数被阻塞,导致数据丢失 ==> 这种场合需要给一个节点开辟多个线程,保证数据流的畅通

8.17测试任务

@Durant35 commented on Thu Aug 17 2017

  • Square Grid 和 Sector Grid两种投影算法通过参数切换
  • 利用cone数据集调试参数(Sector Grid为主)

@Durant35 commented on Fri Aug 18 2017

参数调试

  • 中空检测
    • 测试场动态场景
    • 体育馆静态场景
  • 雪糕筒静态场景

@Durant35 commented on Sun Aug 20 2017

  • TestRoadStation2Straight_20170810113954[HDL32].pcap
    • Frame #528:中空树检测
  • TestRoadOutsideInTurn2Station_20170810114638[HDL32].pcap
    • Frame #58:右侧中空树检测
    • Frame #160:误检(需要利用前后多帧信息)
  • MiddleTurn2Station2Chuanshe2Gym_20170810114952[HDL32].pcap
    • Frame #474:十字路口大树&路口检测

static_cast<...>(...) 显示类型转换

http://www.cnblogs.com/ider/archive/2011/07/31/cpp_cast_operator_part4.html

static_cast 真正用处并不在指针和引用上,而在基础类型和对象的转换上

  • static_cast<...>(...) 跟传统转换方式几乎是一致的,所以只要将static_cast圆括号去掉,再将尖括号改成圆括号就变成了传统的显示转换方式。

reinterpret_cast

  • reinterpret_cast<...>(...)可以在任意指针之间进行互相转换,即使这些指针所指的内容是毫无关系的,也就是说一下语句,编译器是不会报错的,但是对于程序来说也是毫无意义可言的,只会造成程序崩溃
  • 所谓 “关系”,可以是继承...

C++ std珠玑

std::lower_bound() & std::upper_bound()

  • 函数lower_bound()在first和last中的前闭后开区间进行二分查找,返回大于或等于val的第一个元素位置(迭代器);如果所有元素都小于val,则返回last的位置
  • 函数upper_bound则返回大于val的第一个元素位置(迭代器)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.