自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (3)
  • 收藏
  • 关注

原创 MS algorithm interview (6,7,8) LinkedList & verifyBST & reverse word

<br />16:28:09第6题<br /> ------------------------------------ <br />微软亚院之编程判断俩个链表是否相交给出俩个单向链表的头指针,<br />比如h1,h2,判断这俩个链表是否相交。<br />为了简化问题,我们假设俩个链表均不带环。 <br />问题扩展: <br />1.如果链表可能有环列?<br />2.如果需要求出俩个链表相交的第一个节点列?<br /><br />/*1.首先假定链表不带环<br />那么,我们只要判断俩个链表的尾指针

2011-04-08 16:45:00 457

原创 MS algorithm interview (3,4,5)

<br />/*3.求子数组的最大和<br />题目:<br />输入一个整形数组,数组里有正数也有负数。<br />数组中连续的一个或多个整数组成一个子数组,每个子数组都有一个和。<br />求所有子数组的和的最大值。要求时间复杂度为O(n)。<br /><br />例如输入的数组为1, -2, 3, 10, -4, 7, 2, -5,和最大的子数组为3, 10, -4, 7, 2,<br />因此输出为该子数组的和18。*/<br /><br />#include <iostream.h><br /><

2011-04-08 14:43:00 550

原创 MS algorithm interview (2) Stack with min function

<br />/*<br />2.设计包含min函数的栈。<br />定义栈的数据结构,要求添加一个min函数,能够得到栈的最小元素。<br />要求函数min、push以及pop的时间复杂度都是O(1)。<br />*/<br />class Stack { <br />private:<br />       struct Link<br />       {<br />        int data; <br />        Link* next;<br />        Link(const

2011-04-08 13:21:00 348

原创 MS algorithm interview(1) BST2DoubleList

<br />1.把二元查找树转变成排序的双向链表<br /> 题目:<br />输入一棵二元查找树,将该二元查找树转换成一个排序的双向链表。<br />要求不能创建任何新的结点,只调整指针的指向。<br />   <br />   10<br />   / /<br />  6  14<br /> / / / /<br />4  8 12 16<br />   <br /> 转换成双向链表<br /> 4=6=8=10=12=14=16。<br /><br />#include <stdio.h>#in

2011-04-08 13:05:00 300

原创 dbms.recordmanagement.Index(BPTree)

<br />public class Index{<br />private AttributeType keyType;<br />        private IndeInfoBlock indexInfoBlock;<br /> <br />        public Index(AttributeType keyType, IndexInfoBlock indexInfoBlock) {        this.keyType  = keyType;        this.indexInfoB

2011-04-07 14:38:00 264

原创 page replacement

<br />1.Optimal Algorithm 最佳置换算法<br />2.The NRU (Not Recently Used) Page Replacement Algorithm 最近末使用<br />3.The First-In, First-Out (FIFO) Page Replacement Algorithm 先进先出置换算法<br />4.Least Recently Used (LRU) 最近最少使用<br />5.The Second Chance Page Replacement

2011-04-02 16:20:00 1494

原创 LRU的实现

<br />LRU算法的实现<br /> <br />什么是LRU算法? LRU是Least Recently Used的缩写,即最近最少使用页面置换算法,是为虚拟页式存储管理服务的。<br />关于操作系统的内存管理,如何节省利用容量不大的内存为最多的进程提供资源,一直是研究的重要方向。而内存的虚拟存储管理,是现在最通用,最成功的方式——在内存有限的情况下,扩展一部分外存作为虚拟内存,真正的内存只存储当前运行时所用得到信息。这无疑极大地扩充了内存的功能,极大地提高了计算机的并发度。虚拟页式存储管理,则是将

2011-03-31 23:03:00 3419

原创 dbms.buffer.BufferAccess

public class BufferAccess{         public static final int cacheSize= 16*1024*1024/DiskManagement.BLOCK_SIZE;         private static BufferAccess bufferAccessInstance= null;         private DiskManagement diskManagement;          /**         * 锁住的关键块,只在文件打

2011-03-31 22:58:00 660

原创 p2p.download.Downloader

<br />public class Downloader extends Thread {<br /> public final int DEFAULT_CLIENT_PORT = 8765;<br /> private FileInformation serverFile;<br /> private String path;<br /> private Socket socket = null;<br /> private DataOutputStream out = null;<br /> priv

2011-03-31 22:38:00 322

原创 dbms.buffer.IDEntry

/* * Created on 2005-1-21 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */package buffer;/** * @author zh * * TODO To change the template for this generated type comment go to * Wi

2011-03-30 20:51:00 440 1

原创 p2p.server.P2PServer

package server;/** *An Index server.  This contains an index of all the files that are being *shared and their locations.  The key problems for this component are: *How to construct a robust index that can be searched as quickly as *possible. */import java

2011-03-30 20:38:00 1230

原创 dbms.buffer.block

抽象类 blockpublic abstract class Block{ public static final int META_BLOCK = 1; public static final int SCHEMA_BLOCK = 2; public static final int INDEX_BLOCK = 3; public static final int DATA_BLOCK = 4; public static final int INDEX_INFO_BLOCK = 5; private b

2011-03-30 19:11:00 349

原创 dbms(2)

<br />Compiler包中包含了两种主要的数据结构:语法分析树、关系代数树(逻辑查询计划)。<br />从GUI得到的SQL语句首先被交给String Parser,根据该SQL语句的起始字符串来判断操作的类型并交给相应的函数处理。在这些函数种会根据不同的语句生成不同的对象,如Select-From-Where类型的语句生成SFW类型的对象,Update-Set-Where类型的语句生成USW类型的对象。调用这些对象中的FromSQL()函数能够对传给它们的SQL语句进行编译,生成一颗语法分析树。调用

2011-03-30 13:18:00 371

原创 dbms(1)

<br /><br /><br /> <br />本系统的主要功能共分为五个模块,分别为<br />compiler(DDL & DML字符串解析,验证合法性,优化查询计划,生成查询、定义),<br />execution engine(执行引擎,执行查询,并返回结果),<br />record management(索引、文件、记录管理器,负责从buffer读入表定义(元数据)、索引、记录,其中表定义(元数据)、高层索引常驻内存,向执行引擎和编译器提供信息),<br />buffer(缓冲区管理,在内存中

2011-03-30 13:13:00 300

原创 2011/3/30

<br />从今天开始,<br />主要记载自己3个project的进度,督促自己。<br />1.p2p<br />2.dbms<br />3.asm<br />加油!<br />少玩游戏!

2011-03-30 12:44:00 216

ps-exerciseps-exercise

ps-exerciseps-exerciseps-exerciseps-exerciseps-exerciseps-exercise

2009-06-01

sap erp syllabus

sap erp syllabussap erp syllabussap erp syllabussap erp syllabus

2009-06-01

erp 补充讲义 erperp

erp讲义erp讲义erp讲义erp讲义erp讲义erp讲义

2009-06-01

空空如也

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

TA关注的人

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