自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 收藏
  • 关注

原创 双向链表排序

【代码】双向链表排序。

2024-03-02 20:07:02 123

原创 Conan2: from conanfile.txt to conanfile.py

how to transition from the conanfile.txt file we used in the first example to a more powerful conanfile.py

2024-01-28 23:16:46 995

原创 Conan2: Building for multiple configurations: Release, Debug, Static and Shared

Conan2: Building for multiple configurations: Release, Debug, Static and Shared

2024-01-28 16:49:47 624

原创 Conan2: Conceptions & Configurations & Command Lines

【代码】Conan2: Conceptions & Configurations & Command Lines。

2024-01-27 23:41:26 378

原创 Conan2: Using build tools as Conan packages

Using build tools as Conan packages。

2024-01-27 23:34:24 798

原创 Conan2: profiles, the beginning interpretation of how Conan running

Conan profiles allow users to set a complete configuration set for settings, options, environment variables (for build time and runtime context), tool requirements, and configuration variables in a file.an example of a profile structureProfiles can be cre

2024-01-27 23:33:28 1042

原创 Conan2: starting at a text book example

A simple example of how to start Conan2

2024-01-27 14:35:06 1079

原创 “conanfile.txt“: the recipe

"conanfile.txt": the recipe

2024-01-24 00:00:59 801

原创 Conan: starting at a text book Hello World

>md5.exec3fcd3d76192e4007dfb496cca67e13bPress any key to continue. . .

2024-01-21 23:11:38 468 1

原创 JFrog: build your own binary repositories

After the decompression, the installation of JFrog is also done.

2024-01-20 23:06:47 401

原创 All the stories begin at installation

【代码】All the stories begin at installation。

2024-01-20 22:31:11 1853

原创 Conan Learning

todo…

2024-01-18 22:57:11 373 1

原创 Interpretations of Linux Kernel Codes

jmpi   EIP, CS   is an inter-segment(far) jump instruction of x86 real mode; after this instruction, BOOTSEG is loaded to CS, and mark go is loaded to EIP, and then the processor will execute instruction at BOOTSEG : goint   0x13   is a BIOS interr

2023-10-29 17:56:51 107 1

原创 Convertions of Linux Operating System

CatalogueVirtual(Logical) Address to Linear AddressVirtual(Logical) Address to Linear AddressLocates the segment descriptor in GDT or LDT using the offset(segment index) that stored in the segment selector. This step is needed only in the moment when a

2023-10-28 11:48:39 66

原创 所有派生类的所有对象共享同一个基类的静态数据成员变量

在验证代码中,类名称字符串是按照派生类头文件中的声明顺序添加的,而用于打印静态数据成员字符串向量的派生类对象是随机指定的。可以看出,基类里的静态成员变量忠实地记录下了每一个派生类对象向其添加的字符串,并在任意时刻由所有派生类对象所共享。如果一个基类有一个静态成员变量,则他的所有派生类的所有对象是不是也共享这同一个基类中的静态变量呢?带着这个疑问用代码实操了一下,答案是肯定的。我们已经知道类的静态成员变量为这个类的所有对象所共享,那么对于基类而言是一种什么样的情况呢?

2023-10-27 22:36:03 195 1

原创 Conceptions of Linux Operating System

Conceptions of Linux Operating System

2023-10-22 16:38:09 96 1

原创 popen() in Russian dolls

a practice of the gnu libc function popen()

2023-10-21 00:37:22 62 1

原创 C++多线程学习记录

C++ 多线程学习记录,C++基础知识记录

2023-07-22 16:03:51 330

原创 CentOS 7 x86_64编译运行Linux 0.00系统

本文给出了在CentOS 7 x86_64系统中从零开始编译运行Linux 0.12系统的基础设施搭建过程,以达到如下图所示的最终效果。

2023-07-16 21:51:30 284 1

原创 Python实现《算法导论》伪代码:计数排序

计数排序 假设n个输入元素中的每一个都是在0到k区间内的一个整数,其中k为某个整数。当k=O(n)时,排序运行时间为Θ(n)\Theta(n)Θ(n).计数排序的基本思想是对每一个输入元素确定小于它的元素的个数,从而确定其在输出数组中的位次.程序中的A.reverse()必要,因为这样保留了在元素相等情况下相等元素的原始位次.以下为实现代码:def counting_sort(A,k):...

2019-04-15 16:29:45 464

原创 Python实现《算法导论》伪代码:快速排序

对于包含n个数的输入数组而言,快速排序是一种最坏情况时间复杂度为 Θ(n2)\Theta(n^2)Θ(n2)的排序算法,但是它的平均性能非常好,它的期望时间复杂度是Θ(n lgn)\Theta(n\ lgn)Θ(n lgn),而且Θ(n lgn)\Theta(n\ lgn)Θ(n lgn)中隐含的常数因子非常小。Python 实现代码:import n...

2019-04-13 17:49:01 742

原创 Python实现《算法导论》伪代码:堆排序

堆排序的时间复杂度是O(n lgn)O(n\ lg n)O(n lgn),是一种具有空间原址性的排序算法,任何时候都只需要常数个额外的元素空间存储临时数据。 Python 实现代码:import numpy as npdef parent(i): return(int((i-1)/2))def left(i): return(int(2*i)+1)def r...

2019-04-13 15:49:26 257

原创 Python实现《算法导论》伪代码:最大子数组问题

一个数组的和最大的非空连续子数组称为该数组的最大子数组。只有当数组中包含负数时,最大子数组问题才有意义。Python实现代码:def mid_cross(arr,low,mid,high): left_sum = -float('inf') cal_sum = 0 for i in range(mid,low-1,-1): cal_sum = cal_sum + arr[i] ...

2019-01-02 15:27:45 537

原创 Python 之 Hanio 塔

法国数学家爱德华·卢卡斯曾编写过一个印度的古老传说:在世界中心贝拿勒斯(在印度北部)的圣庙里,一块黄铜板上插着三根宝石针。印度教的主神梵天在创造世界的时候,在其中一根针上从下到上地穿好了由大到小的64片金片,这就是所谓的汉诺塔。不论白天黑夜,总有一个僧侣在按照下面的法则移动这些金片:一次只移动一片,不管在哪根针上,小片必须在大片上面。僧侣们预言,当所有的金片都从梵天穿好的那根针上移到另外一根针上时...

2018-12-29 19:15:58 378

原创 python 之玩转24点数字游戏

最近迷上了24点数字游戏,让四个数字在脑子里随意碰撞,结合,然后检查最后的结果,然后再碰撞,结合,检查,不断重复…到最后总会有一种方法让这四个数字乖乖的等于24。当然,前提是这四个数字得来自正规的24点游戏库,因为不是随便四个数字都能得到24点的。在手机上的游戏软件上玩了数十关之后,我突发奇想,为何不把这活交给程序做做呢?由于最近一直在学习Python,就打算用Python玩玩这个游戏,看看结果...

2018-12-24 15:20:18 452

原创 Python 之 “==” 和 “is”

Python 之 “==” 和 “is”==运算符比较两个对象的值,is比较对象的标识。对象的值很容易理解,比如color_1=green,color_2=green,那么color_1 == color_2 这完全没问题。而对象的标识是什么意思呢?在《流畅的Python》提到:每个变量都有标识、类型和值。对象一旦创建,它的标识绝不会变;你可以把标识理解为对象在内存中的地址。is运算符比较两...

2018-12-02 20:19:22 143

原创 PCA特征提取:根据实例理解各个概念

思想PCA的一个重要应用就是特征提取。特征提取背后的思想是,可以找到一种数据表示,比给定的原始表示更适合于分析。下面根据PCA特征提取在脸部特征提取的一个实例上理解各个不同的概念。实例首先上一组人脸图像: 这些人脸图像的大小都是87x65=5655像素,从中任取一副图像,则可以用一个含有5655个元素的向量a表示,其中,每个元素的物理意义为灰度值。可以理解成每一副图像就有56...

2018-09-11 20:47:38 5452 7

原创 python之array赋值技巧

首先创建一个全零的一维列表:a = np.zeros(11)print(a)如果我们想给列表a的某几个元素赋值1的话,可以这样处理:b = [1,3,5,7,9]a[b] = 1print(a)下面是输出:[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.][0. 1. 0. 1. 0. 1. 0. 1. 0. 1. 0.]...

2018-09-10 21:27:17 32313

空空如也

空空如也

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

TA关注的人

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