<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Melody_my的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Melody_my</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Melody_my]]></copyright><item><title><![CDATA[求解0-n范围内所有素数的三种方法]]></title><link>https://blog.csdn.net/Melody_my/article/details/118659029</link><guid>https://blog.csdn.net/Melody_my/article/details/118659029</guid><author>Melody_my</author><pubDate>Sun, 11 Jul 2021 20:55:14 +0800</pubDate><description><![CDATA[题目

朴素筛法
朴素筛法就是一一验证1∼n\sqrt{n }n​之内的数判断，时间复杂度O(nn\sqrt{n }n​)。
int countPrimes(int n){
    int count=0;
    for(int i=2;i&lt;n;i++){
        for(int j=2;j*j&lt;=i;j++){//优化：对于每个数字i，只需要计算2~根号i范围内是否存在非质因子
            if(i% == 0)){//数字i存在因子j（非素数）
            ]]></description><category></category></item><item><title><![CDATA[数据结构——单链表原地逆置（C语言）]]></title><link>https://blog.csdn.net/Melody_my/article/details/108930582</link><guid>https://blog.csdn.net/Melody_my/article/details/108930582</guid><author>Melody_my</author><pubDate>Mon, 05 Oct 2020 17:21:00 +0800</pubDate><description><![CDATA[单链表原地逆置

#include&lt;stdio.h&gt;
#include&lt;stdlib.h&gt;
#define MAXSIZE 10010
#define ElemType int
typedef struct LNode{
    ElemType data;
    LNode *next;
}LNode,*LinkList;
//创建
LinkList initLinkList(int num){
    LNode* head=(LNode *)malloc(sizeof(LN.]]></description><category></category></item><item><title><![CDATA[数据结构——查找链表倒数第K个位置结点（C语言）]]></title><link>https://blog.csdn.net/Melody_my/article/details/108929881</link><guid>https://blog.csdn.net/Melody_my/article/details/108929881</guid><author>Melody_my</author><pubDate>Mon, 05 Oct 2020 16:27:48 +0800</pubDate><description><![CDATA[查找链表倒数第K个位置结点

#include&lt;stdio.h&gt;
#include&lt;stdlib.h&gt;
#define MAXSIZE 10010
#define ElemType int
typedef struct LNode{
    ElemType data;
    LNode *next;
}LNode,*LinkList;
//创建
LinkList initLinkList(int num){
    LNode* head=(LNode *)malloc(siz.]]></description><category></category></item><item><title><![CDATA[数据结构——有序单链表原地合并（C语言）]]></title><link>https://blog.csdn.net/Melody_my/article/details/108929555</link><guid>https://blog.csdn.net/Melody_my/article/details/108929555</guid><author>Melody_my</author><pubDate>Mon, 05 Oct 2020 16:03:35 +0800</pubDate><description><![CDATA[将两个有序单链表进行合并，合并结果仍有序。（合并过程不占用其他存储空间）

#include&lt;stdio.h&gt;
#include&lt;stdlib.h&gt;
#define MAXSIZE 10010
#define ElemType int
typedef struct LNode{
    ElemType data;
    LNode *next;
}LNode,*LinkList;
//创建
LinkList initLinkList(int num){
    LNode* h.]]></description><category></category></item><item><title><![CDATA[数据结构——两个有序顺序表的合并（C语言）]]></title><link>https://blog.csdn.net/Melody_my/article/details/108928135</link><guid>https://blog.csdn.net/Melody_my/article/details/108928135</guid><author>Melody_my</author><pubDate>Mon, 05 Oct 2020 13:52:17 +0800</pubDate><description><![CDATA[-将两个非递减有序顺序表A和B合并成一个新的非递减有序表C
#include&lt;stdio.h&gt;
#include&lt;stdlib.h&gt;
#define MAXSIZE 10010
#define ElemType int
typedef struct{
    ElemType data[MAXSIZE];
    int length;
}SeqList;
void InitList(SeqList &amp;l){
    l.length=0;
}
void CreateList]]></description><category></category></item><item><title><![CDATA[数据结构——折半查找【并插入元素】（C语言）]]></title><link>https://blog.csdn.net/Melody_my/article/details/108921002</link><guid>https://blog.csdn.net/Melody_my/article/details/108921002</guid><author>Melody_my</author><pubDate>Sun, 04 Oct 2020 19:40:34 +0800</pubDate><description><![CDATA[二分查找（折半查找）

#include&lt;stdio.h&gt;
#include&lt;stdlib.h&gt;
#define MAXSIZE 10010
int RecurSearch(int A[],int low,int high,int key){
    int flag=0;
    while(low&lt;=high){
        int mid=(low+high)/2;
        if(A[mid]==key){
            printf("元素下标为.]]></description><category></category></item><item><title><![CDATA[数据结构——双向循环链表（C语言）]]></title><link>https://blog.csdn.net/Melody_my/article/details/108919718</link><guid>https://blog.csdn.net/Melody_my/article/details/108919718</guid><author>Melody_my</author><pubDate>Sun, 04 Oct 2020 16:10:24 +0800</pubDate><description><![CDATA[1.双向循环链表的创建
2.双向循环链表的插入
3.双向循环链表的删除
4.遍历双向循环链表

#include&lt;stdio.h&gt;
#include&lt;stdlib.h&gt;
#define MAXSIZE 10010
#define ElemType int
typedef struct DuLNode{
    ElemType data;
    struct DuLNode *prior,*next;

}DuLNode,*DuLinkList;
//创建双向循环链表
DuLin.]]></description><category></category></item><item><title><![CDATA[数据结构——单链表（C语言）]]></title><link>https://blog.csdn.net/Melody_my/article/details/108910573</link><guid>https://blog.csdn.net/Melody_my/article/details/108910573</guid><author>Melody_my</author><pubDate>Sat, 03 Oct 2020 15:37:23 +0800</pubDate><description><![CDATA[1.头插法创建两个升序单链表
2.使用两个单链表来合并两个单链表并按从大到小顺序排列
3.结果打印
4.在合并链表中查找指定的值
5.求表长
6.删除指定值
7.指定位置插入值

#include&lt;stdio.h&gt;
#include&lt;stdlib.h&gt;
typedef struct LNode{
    int data;
    struct LNode *next;
}LNode,*LinkList;

LinkList initLinkList(){
    LNode* h.]]></description><category></category></item><item><title><![CDATA[数据结构——顺序表（C语言）]]></title><link>https://blog.csdn.net/Melody_my/article/details/108909953</link><guid>https://blog.csdn.net/Melody_my/article/details/108909953</guid><author>Melody_my</author><pubDate>Sat, 03 Oct 2020 14:21:28 +0800</pubDate><description><![CDATA[数据结构——顺序表基本操作（C语言）

1.初始化
2.创建
3.插入
4.删除
5.按值查找
6.打印

#include&lt;stdio.h&gt;
#include&lt;stdlib.h&gt;
#define MAXSIZE 10010
#define ElemType int
typedef struct {
    ElemType data[MAXSIZE];
    int length;
}SeqList;
//顺序表初始化
bool InitList(SeqList *l){
   ]]></description><category></category></item><item><title><![CDATA[KMP算法]]></title><link>https://blog.csdn.net/Melody_my/article/details/107399644</link><guid>https://blog.csdn.net/Melody_my/article/details/107399644</guid><author>Melody_my</author><pubDate>Fri, 17 Jul 2020 07:43:32 +0800</pubDate><description><![CDATA[算法简介
KMP算法是一种改进的字符串匹配算法，由D.E.Knuth，J.H.Morris和V.R.Pratt提出的，因此人们称它为克努特—莫里斯—普拉特操作（简称KMP算法）。KMP算法的核心是利用匹配失败后的信息，尽量减少模式串与主串的匹配次数以达到快速匹配的目的。具体实现就是通过一个next()函数实现，函数本身包含了模式串的局部匹配信息。KMP算法的时间复杂度O(m+n)。
算法原理
现在先给两个字符串，我们的目的就是要寻找模式串与主串中所有字符都匹配的位置，并返回模式串第一个元素的下标。
第一轮：]]></description><category></category></item><item><title><![CDATA[HTML5页面基础（一）页面交互性、表格标签]]></title><link>https://blog.csdn.net/Melody_my/article/details/103709556</link><guid>https://blog.csdn.net/Melody_my/article/details/103709556</guid><author>Melody_my</author><pubDate>Thu, 26 Dec 2019 09:46:30 +0800</pubDate><description><![CDATA[HTML5页面基础（一）页面交互性、表格、表单标签
summary标签j经常与details标签配合使用，作为details标签的第一个子元素，用于为details定义标题。当单机标题时，可以显示或隐藏details中的其他内容。
table标签用于实现表格效果。表格的行使用tr标签，列使用td标签。
实列1：表格与details、summary标签
显示效果

HTML5实列
// 交互性与表格...]]></description><category></category></item><item><title><![CDATA[HTML5页面基础（二）form表单]]></title><link>https://blog.csdn.net/Melody_my/article/details/103709541</link><guid>https://blog.csdn.net/Melody_my/article/details/103709541</guid><author>Melody_my</author><pubDate>Thu, 26 Dec 2019 09:45:54 +0800</pubDate><description><![CDATA[表单form标签
运行效果

&lt;!DOCTYPE html&gt;
&lt;html&gt;
	&lt;head&gt;
		&lt;meta charset="UTF-8"&gt;
		&lt;title&gt;注册界面：表单和各输入框综合应用&lt;/title&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;form action="http:www.me...]]></description><category></category></item><item><title><![CDATA[Python核心笔记（一）关于Python]]></title><link>https://blog.csdn.net/Melody_my/article/details/103709528</link><guid>https://blog.csdn.net/Melody_my/article/details/103709528</guid><author>Melody_my</author><pubDate>Thu, 26 Dec 2019 09:45:12 +0800</pubDate><description><![CDATA[关于Python
Python是一种支持面向对象得解释性高级语言，现在以及可以运行在世界上主流得操作平台之上了，跨平台性极强。
Python类似于C++和Java，是一种完全支持面向对象得语言，但是它得语法更灵活。采用严格得缩进来管理代码，提高了可读性，极大的降低了代码维护得代价。
特点
高级
面向对象
可升级
可扩展
可移植性
易学
易读
易维护
健壮性
高效得快速原型开发工具
内存管理器
解释...]]></description><category></category></item><item><title><![CDATA[Python核心笔记（二）]]></title><link>https://blog.csdn.net/Melody_my/article/details/103709514</link><guid>https://blog.csdn.net/Melody_my/article/details/103709514</guid><author>Melody_my</author><pubDate>Thu, 26 Dec 2019 09:44:42 +0800</pubDate><description><![CDATA[快速入门
输入：raw_input
输出：print
列表元素：[] 类似数组
列表切片操作[from:to]  截取from 到to的列表元素（左闭右开）
字典元素：{} 键值对
代码缩进：四个空格
打开文件：
handle=open(file_name,access_mode='r)
handle.close()
函数定义：
def dunction_name([arguments]):
“o...]]></description><category></category></item><item><title><![CDATA[Python核心笔记（三）]]></title><link>https://blog.csdn.net/Melody_my/article/details/103709506</link><guid>https://blog.csdn.net/Melody_my/article/details/103709506</guid><author>Melody_my</author><pubDate>Thu, 26 Dec 2019 09:44:08 +0800</pubDate><description><![CDATA[条件和循环
if判断：
if expression1:
…expr1_true_suite
elif expression2:
…expr2_true_suite
elif expression3:
…expr3_true_suite
else:
…None_of_the_above_suite
Python 不支持 switch/case 语句，但完全可以用 if/else 的结构来代替
三元操...]]></description><category></category></item><item><title><![CDATA[Python核心笔记（四）高级编程]]></title><link>https://blog.csdn.net/Melody_my/article/details/103709490</link><guid>https://blog.csdn.net/Melody_my/article/details/103709490</guid><author>Melody_my</author><pubDate>Thu, 26 Dec 2019 09:43:28 +0800</pubDate><description><![CDATA[正则表达式
Python 通过标准库的 re 模块来支持正则表达式（RE）。
搜索 and 匹配：“模式匹配（patten-mactching）”
搜索（searching）：在字符串任意部分中搜索匹配的模式
匹配（matching）：判断一个字符串能否从起始处全部或部分的匹配某个模式
正则表达式中常见的符号和字符

反斜杠（\）表示对特殊字符进行转译
正则表达式本身默认是贪心的，解决办法就是用“...]]></description><category></category></item><item><title><![CDATA[机器学习（一）概述]]></title><link>https://blog.csdn.net/Melody_my/article/details/103709460</link><guid>https://blog.csdn.net/Melody_my/article/details/103709460</guid><author>Melody_my</author><pubDate>Thu, 26 Dec 2019 09:41:51 +0800</pubDate><description><![CDATA[何为机器学习？
机器学习是从数据中提取知识，专门研究计算机怎样模拟或实现人类的学习行为，以获取新的知识或技能，重新组织已有的知识结构使之不断改善自身的性能。它是统计学、人工智能和计算机科学交叉的研究领域，也被称为预测分析(predictive analytics)或统计学习(statistical learning)。
机器学习的定义
1.机器学习是一门人工智能的科学,该领域的主要研究对象是人工智...]]></description><category></category></item><item><title><![CDATA[python—tkinter编程实战（一）]]></title><link>https://blog.csdn.net/Melody_my/article/details/103709446</link><guid>https://blog.csdn.net/Melody_my/article/details/103709446</guid><author>Melody_my</author><pubDate>Thu, 26 Dec 2019 09:41:10 +0800</pubDate><description><![CDATA[tkinter编程实战
Python标准库tkinter是对Tcl/Tk的进一步封装，并提供了强大的跨平台图形用户界面（GUI）编程的功能。tkinter库学习手册
tkinter常用组件




组件名称
说明




Button
按钮


Canvas
画布


Checkbutton
复选按钮


Entry
单行文本框


Frame
框架，可作为其他组件的容器


Label
标签

...]]></description><category></category></item><item><title><![CDATA[python—tkinter编程实战（二）]]></title><link>https://blog.csdn.net/Melody_my/article/details/103709432</link><guid>https://blog.csdn.net/Melody_my/article/details/103709432</guid><author>Melody_my</author><pubDate>Thu, 26 Dec 2019 09:40:27 +0800</pubDate><description><![CDATA[实例6（抽奖提问程序）
import tkinter
import tkinter.messagebox
import random
import threading
import itertools
import time

root=tkinter.Tk()
root.title('随机提问')
root.geometry('260x180+400+300')
root.resizable(F...]]></description><category></category></item><item><title><![CDATA[机器学习（二）KNN（K-近邻）算法]]></title><link>https://blog.csdn.net/Melody_my/article/details/103709409</link><guid>https://blog.csdn.net/Melody_my/article/details/103709409</guid><author>Melody_my</author><pubDate>Thu, 26 Dec 2019 09:39:35 +0800</pubDate><description><![CDATA[所属类别：
监督学习之聚类算法
原理：
KNN是通过测量不同特征值之间的距离进行分类。即，如果一个样本在特征空间中的k个最相似（最邻近）的样本中的大多数属于某一个类别，则该样本也属于这个类别。其中k通常是不大于20的整数。
例子：

在如上图形中，要求判断绿色的园应当被划分到哪个类别。
如果k=3，即根据与绿色园最近邻的三个形状来划分它的所属类别。由于与其最近邻的三个图形中红色三角形所占比例为2/...]]></description><category></category></item></channel></rss>