<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>算法 on haifeiWu</title><link>https://haifeiWu.github.io/tags/%E7%AE%97%E6%B3%95/</link><description>Recent content in 算法 on haifeiWu</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>whfstudio@163.com (haifeiWu)</managingEditor><webMaster>whfstudio@163.com (haifeiWu)</webMaster><copyright>© 2016～2026 haifeiWu</copyright><lastBuildDate>Wed, 08 Mar 2023 15:33:34 +0800</lastBuildDate><atom:link href="https://haifeiWu.github.io/tags/%E7%AE%97%E6%B3%95/index.xml" rel="self" type="application/rss+xml"/><item><title>MapReduce 论文阅读</title><link>https://haifeiWu.github.io/posts/mapreducelunwenyuedu/</link><pubDate>Wed, 08 Mar 2023 15:33:34 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/mapreducelunwenyuedu/</guid><description>概述 这篇论文主要介绍了 MapReduce 编程模型和相关实现，用于处理和生成大型数据集。它隐藏了并行化、容错、本地性优化和负载平衡等细节，使得即使对于没有并行和分布式系统经验的程序员也很容易使用。</description></item><item><title>GFS 论文阅读</title><link>https://haifeiWu.github.io/posts/gfslunwenyuedu/</link><pubDate>Wed, 08 Mar 2023 15:32:18 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/gfslunwenyuedu/</guid><description>概述 这篇论文主要讲述了 Google 文件系统（GFS）的设计和实现。它介绍了 GFS 的目标、架构、组件、数据流和一些关键技术，如租约、快照和恢复等。</description></item><item><title>二分查找算法细节详解</title><link>https://haifeiWu.github.io/posts/er-fen-cha-zhao-suan-fa-xi-jie-xiang-jie/</link><pubDate>Sun, 01 Sep 2019 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/er-fen-cha-zhao-suan-fa-xi-jie-xiang-jie/</guid><description>思路 我相信对很多读者朋友来说，编写二分查找的算法代码属于玄学编程，虽然看起来很简单，就是会出错，要么会漏个等号，要么少加个 1。不要气馁，因为二分查找其实并不简单。看看 Knuth 大佬（发明 KMP 算法的那位）怎么说的：Altho</description></item><item><title>LRU 算法</title><link>https://haifeiWu.github.io/posts/lru--suan-fa/</link><pubDate>Sat, 29 Jun 2019 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/lru--suan-fa/</guid><description>What？LRU 是 Least Recently Used 的缩写，即最近最少使用，是一种常用的页面置换算法，选择最近最久未使用的页面予以淘汰。该算法赋予每个页面一个访问字段，用来记录一个页面自上次被访问以来所经历的时间 t，当须淘汰</description></item><item><title>LeetCode 每日一题（day 1）</title><link>https://haifeiWu.github.io/posts/leetcode--mei-ri-yi-ti--day-1/</link><pubDate>Wed, 13 Feb 2019 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/leetcode--mei-ri-yi-ti--day-1/</guid><description>题目 题目描述：给定一个按非递减顺序排序的整数数组 A，返回每个数字的平方组成的新数组，要求也按非递减顺序排序。示例 1：输入：4, 1,0,3,10 输出：0,1,9,16,100 示例 2：输入：7, 3,2,3,11 输</description></item><item><title>聊聊 volatile 关键字</title><link>https://haifeiWu.github.io/posts/liaoliao-volatile-guanjianzi/</link><pubDate>Mon, 22 Oct 2018 10:07:21 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/liaoliao-volatile-guanjianzi/</guid><description>我们知道 volatile 关键字的作用是保证变量在多线程之间的可见性，它是 java.util.concurrent 包的核心，没有 volatile 就没有这么多的并发类给我们使用。本文将简单介绍一下 volatile 这个东东。CAS(compare-and-swap)…</description></item><item><title>基于 JMeter 的压测工具的实现</title><link>https://haifeiWu.github.io/posts/jiyu-jmeterdeyacegongjudeshixian/</link><pubDate>Sun, 05 Nov 2017 19:54:39 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/jiyu-jmeterdeyacegongjudeshixian/</guid><description>在界面中选择对应的选项卡：（目前只支持 HTTP 模板，自定义脚本上传，测试相应结果两个选项卡），HTTP 模板是根据页面选择的参数生成 jmx 文件，自定义脚本是用户直接上传 jmx 脚本。下图是执行脚本的页面，在页面中可以选择在本地执行与在远程机执行（远程机执行是指在 3 台机器上同步执行…</description></item><item><title>扒一扒 Spring，dom4j 实现模拟实现读取 XML</title><link>https://haifeiWu.github.io/posts/bayibaspring-dom4jshixianmonishixianduquxml/</link><pubDate>Wed, 23 Aug 2017 20:38:56 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/bayibaspring-dom4jshixianmonishixianduquxml/</guid><description>今天 leadr 提出需求，原来公司项目中读取解析 XML 文件的代码效率太低，考虑切换一种 XML 为数据封装格式与读取方式以提高效率。我这灵机一动 Spring 对 bean 的依赖注入就是读取 XML 文件，可以尝试扒一扒 Spring 的源码，来实现一个轻量级的方案。重构 XML 文件，向 sprin…</description></item></channel></rss>