当前位置:文库下载 > 所有分类 > IT/计算机 > 基于MIPS指令集的汇编程序(spim仿真)——快速排序和二分搜索
免费下载此文档侵权投诉

基于MIPS指令集的汇编程序(spim仿真)——快速排序和二分搜索

基于MIPS指令集的汇编程序(assembly code),实现了快速排序(quick sort)和二分法搜索(binary search)。用户首先输入一串数,以-1结束,之后程序用快速排序法排序;之后用户可以...更多>> 基于MIPS指令集的汇编程序(assembly code),实现了快速排序(quick sort)和二分法搜索(binary search)。用户首先输入一串数,以-1结束,之后程序用快速排序法排序;之后用户可以输入整数,程序用二分法进行搜索,如果找到则返回位置,输入 -1结束。该报告

Report for MIPS Assembler Programs

Quick Sort and Binary Search

HAO Cong

1. Introduction

In this program, I implemented two major functions: quick sort and binary search. First, a list of integers is given by user, and the integers are sorted in ascending order using quick sort method. Then the program search for the particular integer given by user, using binary search, and provides its position. Figure 1 shows the basic structure of the program.

Figure 1: Basic Structure of Program

基于MIPS指令集的汇编程序(spim仿真)——快速排序和二分搜索

第1页

免费下载Word文档免费下载:基于MIPS指令集的汇编程序(spim仿真)——快速排序和二分搜索

(下载1-8页,共8页)

我要评论

返回顶部