SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6

Thread: Array Sorting

  1. #1
    Moderator
    Join Date
    Apr 2001
    Location
    Atlanta, GA, USA
    Posts
    2,167
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0

    Array Sorting

    User Jordan Gottlieb (jgottlieb@qualitechsolutions.com.nospam) posted:


    Hey all....

    Iím looking for some functions that sort arrays. Iíve found the
    func_ra_sort functions and func_ra that are on the MI CS site, but theyíre
    not working for me. I keep getting empty arrays returned. Iím wondering if
    arr[0]=ĒĒ may have something to do with it (theyíre getting populated from
    element #1 onward).

    Any ideas?

    Jordan Gottlieb http://www.qualitechsolutions.com/
    Developing Quality Web Applications
    704-944-6040 (Voice)
    704-556-0313 (Fax)




    [This message has been edited by AJ (edited 04-25-2002).]
    Jordan Gottlieb
    Senior Consultant, Orasi Software
    Twitter: @JG_QA

  2. #2
    Moderator
    Join Date
    Apr 2001
    Location
    Atlanta, GA, USA
    Posts
    2,167
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0

    Re: Array Sorting

    User Jordan Gottlieb (jgottlieb@qualitechsolutions.com.nospam) posted:

    ------=_NextPart_000_001A_01C1EC3F.BF8BA7A0
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: 8bit

    What I mean is that I donít have a value for element zero when Iím sorting.

    Jordan Gottlieb http://www.qualitechsolutions.com/
    Developing Quality Web Applications
    704-944-6040 (Voice)
    704-556-0313 (Fax)

    Jordan Gottlieb
    Senior Consultant, Orasi Software
    Twitter: @JG_QA

  3. #3
    Member
    Join Date
    Mar 2001
    Location
    Chapel Hill, NC, USA
    Posts
    63
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Array Sorting

    User Wendy Richardson (rwendy@us.ibm.com.nospam) posted:

    Maybe the func_ra_sort functions should be updated for that
    functionality.
    (Arrays starting with 0 or 1).

    Or copy them to your own area and add a couple lines at the top that
    ask whether or not arr[0] =='""; and make proper adjustments. I would
    say most array functions should be created (hint hint) with the
    functionality
    to start at 0 or 1.


    I haven't seen this function, have my own sorting schemes, so can't give
    more info than that.

    Wendy


    Wendy Richardson
    QA Automation Tools
    919-543-3514 T/L 444-3514


    Chris <chris@sdt.co.za> on 04/25/2002 09:48:40 AM

    Please respond to winrunner@yahoogroups.com

    To: "'winrunner@yahoogroups.com'" <winrunner@yahoogroups.com>
    cc:
    Subject: RE: [winrunner] Array Sorting

    The problem could be the single "="** which is an assignment, and not a
    comparison operator.
    Maybe use if arr[0] == ""** ?


    Regards,
    Chris.

  4. #4
    Moderator
    Join Date
    Apr 2001
    Location
    Atlanta, GA, USA
    Posts
    2,167
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0

    Re: Array Sorting

    User Jordan Gottlieb (jgottlieb@qualitechsolutions.com.nospam) posted:

    I've done some hunting online, and what I've found is that there are
    different methods of sorting, each with their own advantages and
    disadvantages revolving around amount of memory used and how fast or slow
    they might run with large and small data sets. The algorhythms involved are
    pretty intense and way above any of the math I took in school.

    I'll set up the array formation to start at 0 and see what happens. But I
    could have sworn when I looked at the code of the sorting functions there
    was startpoint and endpoint variables to determine where to start and end
    within the array.... Maybe.

    Jordan Gottlieb http://www.qualitechsolutions.com/
    Developing Quality Web Applications
    704-944-6040 (Voice)
    704-556-0313 (Fax)

    Jordan Gottlieb
    Senior Consultant, Orasi Software
    Twitter: @JG_QA

  5. #5
    Senior Member
    Join Date
    May 2001
    Location
    Ankh-Morpork
    Posts
    2,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Array Sorting

    User cwreace (cwreace@yahoo.com.nospam) posted:

    I've just uploaded file "array.txt", which includes two
    functions: "array_sort_random(inout array)" and "array_sort(inout
    array, in order)". The second one uses a bubble sort routine - it's
    not blindingly fast but it seems to work. I think both are
    sufficiently well self-documented to figure out how to use them.
    (Jordan, I emailed you a copy to try out. Let me know if it helps.)

    Charles


    web site | [url=http://www.ebookworm.us/[/url]

    [i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.&lt;/i] (The Song of Roland)

  6. #6
    Moderator
    Join Date
    Aug 2001
    Location
    NC
    Posts
    6,018
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Array Sorting

    Jordon,

    There are probably dozens of sort algorithms that are directly adaptable to WinRunner, from bubblesort on up. Most of the college data structures books I have in my bookcase have at least three different sorting algorithms.

    I have included links to several references that might be useful.
    http://www.cs.duke.edu/research/AI/P...l00-algsel.pdf
    http://privat.schlund.de/b/bossung/p...i/sorting.html
    http://www.vb2themax.com/HtmlDoc.asp...s&ID=10&Page=2
    http://www.df.lth.se/~triad/krad/algorithms/
    http://melnais.mii.lu.lv/juris/cours...DF/Sorting.pdf
    http://www.geocities.com/SiliconVall...854/Sort1.html



    ------------------
    James Pulley
    nospam.jpulley@nospam.itestsolutions.com
    iTest Solutions, Inc
    704-243-2854 (voice)
    James Pulley

    Replace ineffective offshore contracts, LoadRunnerByTheHour. Starting @ $19.95/hr USD.

    Put us to the test, skilled expertise is less expensive than you might imagine.

    Twitter: @LoadRunnerBTH @PerfBytes

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:14 PM.

Copyright BetaSoft Inc.