- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 验证图是否相似
思考图相似的问题,如果一个图和另一个相似但,顶点标注不同,能否判断出来。 思路如下: 用矩阵表示图 1)枚举第二图的顶点的一个排列 a) 通过swap的方法得到第二图的新图 (发现交换顶点,只需要交换相应的行和列就得到新图) b) 匹配第一图和第二图的新图 c) 相同就完成,否则回到1) 实现如下 package com.pnp.mapsim
2015-01-30 10:41:51 799
原创 编写 Window 下 Python C程序
1)下载 mingw-get-setup.exe 安装需要gcc 等 2)编成C程序 #include class Foo{ public: void bar(){ std::cout << "Hello" << std::endl; } }; extern "C" { Foo* Foo_new(){ re
2015-01-21 13:22:55 662
原创 python code 保密
python 开发效率高,但就是太容易反编译 使用 uncopyle 反编译几乎得到和原代码相同的东西 git clone https://github.com/gstarnberger/uncompyle.git cd uncompyle/ sudo ./setup.py install uncompyler.py thank_goodness_this_still_exist
2015-01-12 11:34:00 3650
原创 ubuntu 升级 12.04 到14.04
运行命令 sudo do-release-update 如果遇到不能update,就强制安装 sudo apt-get -f install 安装后发现kernel没有变,安装kernel sudo apt-get install linux-generic 遇到的问题 1) source.list 中错误源,要打开 /etc/apt/source
2015-01-08 16:38:02 5630
gnu-linker
2013-06-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人