-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added table extractor for Kruskal code.
- Loading branch information
1 parent
208e180
commit 957b882
Showing
6 changed files
with
62 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
#ifndef _MERGETREESTRUCT_ | ||
#define _MERGETREESTRUCT_ | ||
typedef struct { | ||
mtree *tree; | ||
RAG *rag; | ||
struct xvimage *labels; | ||
int32_t *altitudes; | ||
float *weights; | ||
int cs; | ||
int rs; | ||
} MergeTree; | ||
#endif | ||
|
||
typedef struct list | ||
{ | ||
int index; | ||
struct list *next; | ||
} list ; | ||
|
||
void Insert(list **sl, int index); | ||
|
||
void PrintList(list *sl); | ||
int element_link( int x,int y, uint32_t *Rnk, uint32_t *Fth); | ||
int element_find(int x, uint32_t *Fth ); | ||
void TriRapideStochastique_dec (float * A, uint32_t *I, long p, long r); | ||
long PartitionStochastique_dec (float *A, uint32_t * I, long p, long r); | ||
int nb_neighbors(int x, JCctree *CT, int nb_leafs); | ||
int neighbor(int x, int k, JCctree *CT, int nb_leafs, int * SeededNodes); | ||
|
||
list * MSF_Kruskal(MergeTree * MT); |