/* Open_addressing_hash (2) -- open the fixed address hash implementation file */ # include # include # include "open_addressing_hash (2 ). H " /* local function declaration */ static int get_prime_value (const int size ); static int
/* 9-10 (B)-12-13-000026.c -- Chapter 9, question 10 (B) */ # include # include # include "binary_heap.h" int main (void); int new_dijkstra (const adjacenty_list * padj, const hash_table * const PHT, const int start); int main (void) {
/* Open_addressing_hash.c -- open the fixed address hash implementation file */ # include # include # include "open_addressing_hash.h" /* local data type definition */ struct Apple/* I can't think of any other name */ { int full; int value; };
finally, I started to get started with sorting. The implementation is understandable. It is difficult for me to analyze the complexity.
/* 7-1-11-19-0020.1.c -- Chapter 7 First Question */ # include # include # define size 9 typedef int item;
The fourth day of the learning tree, the first class stretched the tree. I wrote it for 8 hours. It was so sleepy. It felt so good. After writing it, I read it again and wrote it down.
I hope someone else will be willing to communicate with me.
/*
/* Separate_chaining_hash -- detach the link hash to implement the file */ # include # include # include "separate_chaining_hash.h" /* local data type definition */ typedef struct pair { listnode * parent; listnode * Current; } pair; /*
For the use of ordered containers, it is not that simple to write the things that can be taken out and worth taking out.
I just registered for the soft exam, and the software designer is about to start again. A small trip, a beautiful world, is
/* D-heap.c -- d-heap implementation file */ # include # include # include "d-heap.h" /* local function declaration */ static int percolate_up (const heap * const pheap, const item, const int position); static int percolate_down (const heap *
A question. I started thinking about it yesterday, and today I think about it again. I admit that my head is confused, but it is a little slow and I cannot accept it. "Do not rush to continue, do not even thousands of miles; do not accumulate small
I felt like I had to sort these items. At least, I didn't have them in my head. Well, I'm always not focused. Come on.
Let's talk about quick sorting. The principle is to constantly divide an array into three parts, so that all arrays are in this
The stability of sorting refers to whether the positional order of the same element changes before and after sorting. stable sorting without changing the positional order. unstable sorting is a change in the sequential location relationship. Of
Sort by count. Watch Wikipedia on the phone during the day.
Dealing with int-type data with a small data span is indeed very fast. The code is very intuitive.
/* Count_sort-11-03-21-19.01.c -- count sort */ # include # include # define size (10
Read and talk about the exercise behind counting sorting. Indeed, after the testicles, there is a slight pain in your ears.
The specified data, in min ~ Within the max range, make sure that the data is in start ~ The number of end data. because it
/* Binary_heap.c -- binary heap implementation file */ # include # include # include "binary_heap.h" /* local function declaration */ static int percolate_up (const binary_heap * const PBH, const int index); static int percolate_down (const
Implementation file. The details in the file are related to the output method. You can select multiple output methods without much packaging.
// Block. CPP-simulated integrated circuit board implementation file # include "stdafx. H " # include"
Back-to-algorithm. This is also written after various hardships. After writing it, I don't want to say anything more.
/* 10-40-11-02-16-06.10.c -- Chapter 10, question 1 *//* 02-18-40th. it took about 13 hours. */ # include # include # define
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service