Stack implementation file C Language

/* Stack_adt.c -- stack model implementation file */ # include # include # include "stack_adt.h" /* local function declaration */ static stack_node * make_node (const name * const panme ); /* interface function definition */ int

Use the hash table of Dijkstra algorithm to implement the C language of the file

/* Hash. C -- hash table implementation file */ # include # include # include "hash. H " /* local function declaration */ static int get_a_prime (const int number ); static int is_a_prime (const int number); static int square (const int I );

Red/black tree header file C Language

Red/black tree, I remember I found this thing when I first bought the book. I thought it was mysterious and finally got in touch with it. I have already written it. I'm very happy. The inserted routine is included in the book.CodeImplemented. I am

C language used in combination with the Kruskal Algorithm for non-Intersection Set header files

/* Disjiont_set.h -- Non-intersecting set ADT header file */ # define height (0) # define OOS (1 /* data type definition */ typedef int setitem; typedef setitem settype; typedef setitem * disjiont; /* interface function declaration */ /*

The maximum flow of a tree. C Language

Determine the maximum flow of a tree, that is, the sum of the maximum flow of leaves, that is, the flow of the whole tree. The outbound traffic of each non-leaf node in the tree = min (inbound traffic, path capacity ). Knowing this, we can solve

Read the graph into the adjacent header file. C Language

/* Adjacenty_list.h -- adjacent header file */ # include /* data type definition */ typedef char name; typedef struct vertex { name; struct vertex * Next; } vertex; typedef struct adjacency_list { vertex * List; int * indegree; int capacity;

C language for topological sorting

This mainly reflects thoughts. the problem was first defined on a known exercise, so there was no universality. in implementation, if the name is stored in the stack and the index is stored at the same time, many function calls will be skipped. in

The shortest path for a single point is not allowed. C Language

/* Adjacenty_list.c -- Name of the adjacent table */ # include # include # include "adjacenty_list.h" /* local function declaration */ vertex * make_vertex (const name vertex); /* interface function definition */ int createadjacent_list

D-C language for heap files

For half a day, I wrote a D-heap implementation. It's not bad. I 've deepened my understanding of the priority queue and pasted the code. /* D-heap.h -- d-heap file */ # define mindata-32678 /* data type definition */ typedef int item; typedef

C language for implementing the AA tree file

/* Aatree. C -- AA tree implementation file */ # include "aatree. H "/* global variable Declaration */ static node * nullnode = NULL; /* local function declaration */ static node * singlerotatewithleft (node * const PN ); static node *

Matching heap implementation file C Language

/* Pairingheap. C -- pairing heap implementation file */ # include "pairingheap. H " /* global variable Declaration */ static node * nullnode = NULL; /* local function declaration */ static node * compareandlink_p (node * const first, node *

2-D tree header file C Language

2-D tree, written yesterday. I wanted to have a good time playing the ball today. I don't want to play for a short time, so I came to the Internet. This feature supports two-dimensional range search and is very useful. I do not acknowledge the

Binary Search tree implementation file C ++

// 13-1.cpp # include "stdafx. H " # include" 13-1.h " namespace binarysearchtree { // Private: node * binarysearchtree: m_makenode (const item & item) { node * newnode = new node; If (newnode) { newnode-> item = item; newnode-> left =

Generic queue implementation file C ++

  //queue.cpptemplatevoid Queue ::m_copyElement (const Queue &queue){QueueItem * scan = queue.m_head ;while (scan != NULL){push(scan ->m_item) ;scan = scan ->m_next ;}}template templatevoid Queue ::m_copyElement (Iter beg, Iter end){while (beg !=

Single-source shortest path bellmanford Algorithm Implementation file C ++

  //graphRepresentAsAdjacentList.cpp -- mplement file#include "stdafx.h"#include "graphRepresentAsAdjacentList.h"//Purpose://Define methods of class "graphRepresentAsAdjacentList".//Private methods://---------------------graphRepresentAsAdjacentList

The shortest path of a single source node in a directed acyclic graph, C ++

The shortest path algorithm for a single source node in a directed acyclic graph uses Topology Sorting, which is a good idea. Provided the functions used and posted them. //DAGShortestPathCalculate.cpp -- 2011-09-05-18.35//private methods

Interval Tree implementation file C ++

// Intervaltree. CPP -- Interval Tree implementation file # include "stdafx. H " # include" intervaltree. H " namespace tree { // Private: bool intervaltree: m_overlap (const item min, const item max) const { If (m_min { If (Min return true;

Maximum stream Edmonds-Karp Algorithm driver file C ++

Maximum stream algorithm. the algorithm running on the directed graph. before introducing algorithms, we provide various concepts. residual network, augmented path, cut. the implementation is intuitive, and the breadth-first search is used. O (VE)

A total of N nodes of K ordered linked lists are merged into a new ordered linked list header file at O (nlgk) Time. C Language

A previous thinking question, which was implemented yesterday, used a priority queue. I implemented a queue through the linked list. I am used to this. This header file defines the data types and macros of two data structures. This is the first

Exploring the combination of C Language

Let's look at the code. It is also implemented yesterday. /* 2011-04-12-18.00.c -- Explore the Union *//* suppose current machine works as little endian. */ # include Union U { char array [4]; int value; }; /* int main (void); int main

Total Pages: 5902 1 .... 3464 3465 3466 3467 3468 .... 5902 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.