Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pgaduplicate(8) [debian man page]

PGADuplicate(8) 						      PGAPack							   PGADuplicate(8)

NAME
PGADuplicate - determines if a specified string is a duplicate of one already in an existing population INPUT PARAMETERS
ctx - context variable p - string index pop1 - symbolic constant of the population containing string p pop2 - symbolic constant of the (possibly partial) population containing strings to compare string p against n - the number of strings in pop2 to compare string p against n -1) OUTPUT PARAMETERS
none SYNOPSIS
#include "pgapack.h" int PGADuplicate(ctx, p, pop1, pop2, n) PGAContext *ctx int p int pop1 int pop2 int n LOCATION
duplcate.c EXAMPLE
0,...,n-1 in population pop2. Otherwise returns PGA_FALSE Example: Change any string in PGA_NEWPOP that is an exact copy of a string in PGA_OLDPOP. PGAContext *ctx; int b, n; : n = PGAGetPopsize(ctx); for (b=0; b<n; b++) if (PGADuplicate(ctx, b, PGA_NEWPOP, PGA_OLDPOP, n)) PGAChange(ctx, b, PGA_NEWPOP); Check if the best string in population PGA_OLDPOP is a duplicate of any of the strings in the first half of population PGA_NEWPOP. PGAContext *ctx; int b, n; : b = PGAGetBestIndex(ctx, PGA_OLDPOP); n = PGAGetPopsize(ctx) / 2; if (PGADuplicate(ctx, b, PGA_OLDPOP, PGA_NEWPOP, n)) printf("A duplicate!0); 05/01/95 PGADuplicate(8)

Check Out this Related Man Page

PGASendReceiveIndividual(4)					      PGAPack					       PGASendReceiveIndividual(4)

NAME
PGASendReceiveIndividual - Send an individual to a process, while receiving a different individual from a different process. INPUT PARAMETERS
ctx - context variable send_p - index of string to send send_pop - symbolic constant of population to send from dest - destination process send_tag - tag to send with recv_p - index of string to receive recv_pop - symbolic constant of population to receive from source - process to receive from recv_tag - tag to receive with comm - an MPI communicator status - pointer to the MPI status structure OUTPUT PARAMETERS
none SYNOPSIS
#include "pgapack.h" void PGASendReceiveIndividual(ctx, send_p, send_pop, dest, send_tag, recv_p, recv_pop, source, recv_tag, comm, status) PGAContext *ctx int send_p int send_pop int dest int send_tag int recv_p int recv_pop int source int recv_tag MPI_Comm comm MPI_Status *status LOCATION
parallel.c EXAMPLE
Example: A dedicated process is being used to perform an optimization algorithm on the strings. Send a new string, s, to the process, while receiving an optimized string, r, from it. PGAContext *ctx; MPI_Comm comm; MPI_Status status; int s, r; : PGASendReceiveIndividual(ctx, s, PGA_NEWPOP, 1, PGA_SR_STRINGTOMODIFY, r, PGA_NEWPOP, 1, PGA_SR_MODIFIEDSTRING, comm, &status); 05/01/95 PGASendReceiveIndividual(4)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

please help immediate

i need to compare a varaiable with a constant "1:3 9". variable can have values like "1:3 8" or "1:3 7" or "1:3 ?" (1 Reply)
Discussion started by: mkan
1 Replies

2. Shell Programming and Scripting

Duplicate

I am looking for a way to delete duplicate entries in a VERY large file (approx 2gb) However I need to compare several fields before determining if this is a duplicate. I setup a hash in perl but it seems to not function correctly. Any help appreciated. of the 19 comma separated fields I... (2 Replies)
Discussion started by: Goyde
2 Replies

3. Shell Programming and Scripting

Remove duplicate files based on text string?

Hi I have been struggling with a script for removing duplicate messages from a shared mailbox. I would like to search for duplicate messages based on the “Message-ID” string within the messages files. I have managed to find the duplicate “Message-ID” strings and (if I would like) delete... (1 Reply)
Discussion started by: spangberg
1 Replies

4. UNIX for Dummies Questions & Answers

Duplicates

Hi, How to eliminate the duplicate values in unix? I have a excel file which contains duplicate values. Need to use this in a script. Thanks in advance. (3 Replies)
Discussion started by: venkatesht
3 Replies

5. Shell Programming and Scripting

How to compare two strings in a file

hello guyzz please help me out.. I have two file a.sh and b.sh it contains two string SD109 ,SD108 . I want to compaere these two string . If a.sh>b.sh do rebasing record time. else it shows no rebasing required. Thanks. (2 Replies)
Discussion started by: abhijtr
2 Replies

6. Shell Programming and Scripting

Search compare and determine duplicate files

Hi May i ask if someone know a package that will search a directory recursively and compare determine duplicate files according to each filename, date modified or any attributes that will determine its duplicity If none where should i start or what are those command in shell scripting that... (11 Replies)
Discussion started by: jao_madn
11 Replies

7. Shell Programming and Scripting

Help with Comparing 2 strings from text

Hey guys how do I compare 2 strings from the text file, and check for duplication? For example, I add an item call Laptop, it will record to the textfile call file. If it detects duplicate it will say the record record exist? file.txt contains Laptop:Sony:1000 Phone:Apple:30 A head... (4 Replies)
Discussion started by: aLHaNz
4 Replies

8. Shell Programming and Scripting

Need help in comparision of two strings

I have two files. one files contain counts and second contain string. Now i have to compare two string . if two string are same i have to add count. If strings are same more than once i have to display final output. like this >Count.txt 1 3 12 4 5 6 1 >strings.txt AA BB BB... (1 Reply)
Discussion started by: pjlotiya
1 Replies

9. UNIX for Advanced & Expert Users

Find duplicate words using sed

I have following statement and I want to find duplicate word using sed command. How is it possible? "detect string and remove the duplicate string" There could be many statements in a file and each line may have duplicate word. Thanks! (1 Reply)
Discussion started by: jnrohit2k
1 Replies

10. Shell Programming and Scripting

Remove lines containing 2 or more duplicate strings

Within my text file i have several thousand lines of text with some lines containing duplicate strings/words. I would like to entirely remove those lines which contain the duplicate strings. Eg; One and a Two Unix.com is the Best This as a Line Line Example duplicate sentence with the word... (22 Replies)
Discussion started by: martinsmith
22 Replies