<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[RFoer的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/RFoer</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; RFoer]]></copyright><item><title><![CDATA[【算法随笔：银行家算法】（进程调度 | 死锁避免/回滚检查）]]></title><link>https://blog.csdn.net/RFoer/article/details/138474603</link><guid>https://blog.csdn.net/RFoer/article/details/138474603</guid><author>RFoer</author><pubDate>Sun, 05 May 2024 21:40:12 +0800</pubDate><description><![CDATA[代码简单易懂，附注释，供参考。]]></description><category></category></item><item><title><![CDATA[Kelpa-小型服务器开发框架分享]]></title><link>https://blog.csdn.net/RFoer/article/details/138416028</link><guid>https://blog.csdn.net/RFoer/article/details/138416028</guid><author>RFoer</author><pubDate>Fri, 03 May 2024 14:36:17 +0800</pubDate><description><![CDATA[项目目前仍处于开发阶段，感兴趣的朋友欢迎来到我的仓库阅读代码和安装体验，期待任何的建议和反馈！这是一个由现代C++编写的小型、学习性质的服务器框架，包含。]]></description><category></category></item><item><title><![CDATA[分享我的github仓库]]></title><link>https://blog.csdn.net/RFoer/article/details/138415126</link><guid>https://blog.csdn.net/RFoer/article/details/138415126</guid><author>RFoer</author><pubDate>Fri, 03 May 2024 13:58:10 +0800</pubDate><description><![CDATA[这是一个由现代C++编写的小型、学习性质的服务器框架，包含压缩，序列化，IO调度，Socket封装，文件配置，日志库等多个完整自研模块，欢迎到我的仓库阅读代码和安装体验，期待任何的建议和反馈！仓库链接 - RFoe/Kelpa: A Miniature Server Framework。]]></description><category></category></item><item><title><![CDATA[【二叉树的中序线索化】]]></title><link>https://blog.csdn.net/RFoer/article/details/136852990</link><guid>https://blog.csdn.net/RFoer/article/details/136852990</guid><author>RFoer</author><pubDate>Tue, 19 Mar 2024 19:40:55 +0800</pubDate><description><![CDATA[【代码】【二叉树的中序线索化】]]></description><category></category></item><item><title><![CDATA[【Codeforces Round #406 (Div. 1) B. Legacy】（线段树 | 优化建图）]]></title><link>https://blog.csdn.net/RFoer/article/details/136852967</link><guid>https://blog.csdn.net/RFoer/article/details/136852967</guid><author>RFoer</author><pubDate>Tue, 19 Mar 2024 19:40:10 +0800</pubDate><description><![CDATA[【代码】【Codeforces Round #406 (Div. 1) B. Legacy】（线段树 | 优化建图）]]></description><category></category></item><item><title><![CDATA[【HDU: Tunnel Warface】(线段树 | 连续区间计数 | 树上二分)]]></title><link>https://blog.csdn.net/RFoer/article/details/136852902</link><guid>https://blog.csdn.net/RFoer/article/details/136852902</guid><author>RFoer</author><pubDate>Tue, 19 Mar 2024 19:37:39 +0800</pubDate><description><![CDATA[题目大意：  有N个连通地道，接下来有M个操作，*  R   -> 修复最近依次被炸毁的地道。*  数据范围：N, M <= 50000。*  Q k -> 查询包括k的最长地道。*  D x -> 炸掉x号地道。]]></description><category></category></item><item><title><![CDATA[【线段树的可持久化】（主席树 | 历史记录 | 版本回溯）]]></title><link>https://blog.csdn.net/RFoer/article/details/136852727</link><guid>https://blog.csdn.net/RFoer/article/details/136852727</guid><author>RFoer</author><pubDate>Tue, 19 Mar 2024 19:35:42 +0800</pubDate><description><![CDATA[【代码】【线段树的可持久化】（主席树 | 历史记录 | 版本回溯）]]></description><category></category></item><item><title><![CDATA[【物理排序】(最小交换环 | 大体量表排序 | 泛型算法）]]></title><link>https://blog.csdn.net/RFoer/article/details/136603737</link><guid>https://blog.csdn.net/RFoer/article/details/136603737</guid><author>RFoer</author><pubDate>Sun, 10 Mar 2024 16:16:39 +0800</pubDate><description><![CDATA[在表排序的过程中，实际上是不需要移动那些原始数据的，要移动的只是指向他们位置的那些指针。不移动元素本身，而只移动元素本身的排序方法，我们称之为“间接排序});++i)交换环：N个数字的排列由若干个独立的环组成。]]></description><category></category></item><item><title><![CDATA[【函数缓存 | 记忆化技术】(类型萃取 | 延迟计算 | hash | 计算优化 | 函数式编程 | 模板元编程)]]></title><link>https://blog.csdn.net/RFoer/article/details/136586219</link><guid>https://blog.csdn.net/RFoer/article/details/136586219</guid><author>RFoer</author><pubDate>Sat, 09 Mar 2024 16:46:28 +0800</pubDate><description><![CDATA[这样，当相同的查询再次发生时，可以直接从缓存中获取结果，而无需再次访问数据库。这样，当相同的请求再次发生时，可以直接返回缓存中的结果，避免了不必要的网络延迟和开销。模板类，然后通过特化这个模板类，将返回类型和参数类型作为模板参数，从而能够获取函数的类型、返回值和参数的个数。，我们可以以一种统一的方式处理这些不同类型的函数对象，而无需针对每种类型编写特定的代码。，可以将之前计算过的结果缓存起来，以便在需要时快速重用，从而提高渲染速度和游戏性能。因此，可以使用记忆化来缓存推理结果，从而加速模型的响应速度。]]></description><category></category></item><item><title><![CDATA[【线段树的简单封装】]]></title><link>https://blog.csdn.net/RFoer/article/details/136543970</link><guid>https://blog.csdn.net/RFoer/article/details/136543970</guid><author>RFoer</author><pubDate>Thu, 07 Mar 2024 19:40:16 +0800</pubDate><description><![CDATA[【代码】【线段树的简单封装】]]></description><category></category></item><item><title><![CDATA[【算法随笔：HDU 3333 Turing tree】(线段树 | 离线 | 离散化 | 贪心）]]></title><link>https://blog.csdn.net/RFoer/article/details/136482191</link><guid>https://blog.csdn.net/RFoer/article/details/136482191</guid><author>RFoer</author><pubDate>Tue, 05 Mar 2024 16:29:20 +0800</pubDate><description><![CDATA[near[i] < x, 意味着原数组最近一次出现value of a[i]不在该区间[x, y)内，也就意味着a[i]是区间中第一个出现的元素。每个区间可能有重叠，这时需要采用贪心思路和区间合并的思路，对区间左端点排序，依照次序依次处理询问区间。题目很简单，给出长度为N的数组，Q次询问，每次给出区间。枚举每个询问区间[x, y)，对于a[i], 如果有。value of a[i]最后出现的下标。只需在更新过程中，同时维护当前时刻，预处理, 记录每个a[i]对应的。last[a[i]]有越界风险。]]></description><category></category></item><item><title><![CDATA[【算法随笔：luogu P3029 Cow Lineup S 】（双指针 | hash | 离散化 | 尺取 | 双端队列）]]></title><link>https://blog.csdn.net/RFoer/article/details/136463915</link><guid>https://blog.csdn.net/RFoer/article/details/136463915</guid><author>RFoer</author><pubDate>Mon, 04 Mar 2024 21:42:39 +0800</pubDate><description><![CDATA[现有N头牛排成一排，这些牛其中包含，每个牛有现在要给这些牛拍一张照片，需要照片中，且。]]></description><category></category></item><item><title><![CDATA[【算法随笔：线段树 Segment tree】(多操作 | leetcode例题）]]></title><link>https://blog.csdn.net/RFoer/article/details/136462767</link><guid>https://blog.csdn.net/RFoer/article/details/136462767</guid><author>RFoer</author><pubDate>Mon, 04 Mar 2024 21:08:37 +0800</pubDate><description><![CDATA[分析线段树，并且一般在算法题中出现。线段树线段树具有，当然动态树也可以，改天更新线段树处理非常强大，很少有别的数据结构能与之媲美线段树进阶操作还有等，这些扩展持续学习中，改日更新DSA模板（静态数组、侵入式）线段树经典应用。]]></description><category></category></item><item><title><![CDATA[【树状数组 | 简单实现】(单点修改 | 区间查询）]]></title><link>https://blog.csdn.net/RFoer/article/details/136435760</link><guid>https://blog.csdn.net/RFoer/article/details/136435760</guid><author>RFoer</author><pubDate>Sun, 03 Mar 2024 18:28:21 +0800</pubDate><description><![CDATA[【代码】【树状数组 | 简单实现】(单点修改 | 区间查询）]]></description><category></category></item><item><title><![CDATA[【算法随笔 Luogu: P1878 舞蹈课】(优先队列 | 断链重连 | 链式）]]></title><link>https://blog.csdn.net/RFoer/article/details/136431174</link><guid>https://blog.csdn.net/RFoer/article/details/136431174</guid><author>RFoer</author><pubDate>Sun, 03 Mar 2024 14:24:22 +0800</pubDate><description><![CDATA[typedef struct {//定义一对节点int 	diff;//每一对的水平差距int 	first;//第一个人的编号//第二个人的编号} node;//记录每个人是否出队（是否有效）//只有label为假，即还没有出队时访问prev和next才有意义//动态记录每个人的前驱//动态记录每个人的后继int N {};//每个人的水平//一共有多少对//组成的每一对的第一个和第二个人i < N;]]></description><category></category></item><item><title><![CDATA[【算法随笔：leetcode 49 异位字符串分组】（C++ | hash | 字符串算法）]]></title><link>https://blog.csdn.net/RFoer/article/details/136354990</link><guid>https://blog.csdn.net/RFoer/article/details/136354990</guid><author>RFoer</author><pubDate>Wed, 28 Feb 2024 20:13:31 +0800</pubDate><description><![CDATA[字符串 s1, s2 | -sorting->的思路，异构字符串的定义指出，两个字符串只要包含。可以按任意顺序返回结果列表。给你一个字符串数组，请你将。然后扔进hashset中。最简单的思路，把每个。字符串s1', s2'同种且同数目的小写字母。]]></description><category></category></item><item><title><![CDATA[【简单的trim函数实现 | C++ 17】]]></title><link>https://blog.csdn.net/RFoer/article/details/136354917</link><guid>https://blog.csdn.net/RFoer/article/details/136354917</guid><author>RFoer</author><pubDate>Wed, 28 Feb 2024 20:03:59 +0800</pubDate><description><![CDATA[【代码】【简单的trim函数实现 | C++ 17】]]></description><category></category></item><item><title><![CDATA[【巩固算法基础：二叉树遍历序列重建】（xx序 + 中序）]]></title><link>https://blog.csdn.net/RFoer/article/details/136354754</link><guid>https://blog.csdn.net/RFoer/article/details/136354754</guid><author>RFoer</author><pubDate>Wed, 28 Feb 2024 19:58:26 +0800</pubDate><description><![CDATA[就以infix-order和prefix-order举例，尝试还原后序遍历序列吧，其他情况都是类似的。代码分别如下：写的比较规范，可作为模板使用，仅作为参考。]]></description><category></category></item><item><title><![CDATA[【日常实现STL ： partial_sort】]]></title><link>https://blog.csdn.net/RFoer/article/details/136333921</link><guid>https://blog.csdn.net/RFoer/article/details/136333921</guid><author>RFoer</author><pubDate>Tue, 27 Feb 2024 23:26:00 +0800</pubDate><description><![CDATA[然后遍历range:[middle, last)，在后面搜索比* first更小的元素，置为更合适的heap-top,然后shift-down(调用adjust_heap, 实质上为shift-down + push_heap), 然后调整range:[first, middle]再次成为max-heap。最终将整个容器中top-k构成的元素集合在range:[first, middle)中构成的max-heap进行排序（调用pop_heap)]]></description><category></category></item><item><title><![CDATA[【算法随笔: 76 最小覆盖子串】(leetcode | hash | 变长滑动窗口 | 预处理优化）]]></title><link>https://blog.csdn.net/RFoer/article/details/136311320</link><guid>https://blog.csdn.net/RFoer/article/details/136311320</guid><author>RFoer</author><pubDate>Mon, 26 Feb 2024 23:53:15 +0800</pubDate><description><![CDATA[最小覆盖子串 "BANC" 包含来自字符串 t 的。所有字符的子串，则返回空字符串。]]></description><category></category></item></channel></rss>