Hi how to find runtime for sorting algorithms

I am new to java.......please help me out by taking a sorting algorithm and find the run time of it ......
Thanks in Advance

If by "runtime" you just mean the amount of time it takes to execute across some set of input...then you can use java.lang.System.currentTimeMillis() to get the current time in milliseconds since Jan 1 1970. Do that both before and after you run the code that implements the algorithm, and subtract to get the difference as running time in milliseconds. Or, if this weren't part of a homework assignment, you could just use a profiler.
If by "runtime" you mean the execution environment, then you want to use java.lang.Runtime.getRuntime(). This has nothing to do with algorithms.
If you mean that you want to analyze the efficiency of the algorithm (eg it's "big-O" notation), then read a textbook on algorithms. This has nothing to do with Java, apart from that Java is just one computer language out of many in which algorithms can be implemented.

Similar Messages

  • How to find Transaction for a Known Table maintenance View

    Hello Friends,
    May I know how to find transaction for a known table maintenance View.
    Thanks,
    Best Regards,
    Sudhanshu Garg

    Goto SE16 Transaction and enter TSTCP Table
    Here PARAM = /SM30 VIEWNAME=Table name*;UPDATE=X;
    enter table name in bold.
    Thanks
    Seshu

  • Im looking how to find driver for Printer HP 2300 driver window 8 (64BIT) PLEASE help !!! stuck

    Hi ,
    I need help how to find driver for my old printer HP 2300d I use USB Cable for my Laptop window 8 (64 bit)
    help I am stuck can't print anything.
    Kim

    Hi, Welcome to hp forums and enjoy your stay, feel yourself like home here!
    I am very sorry to hear this, I will try my best to help you, I am always glad to help!
    Please follow the steps i provided below:
    1. http://windows.microsoft.com/en-ca/windows7/automatically-get-recommended-drivers-and-updates-for-yo...
    Now refer to the below link and right click your printer device
    2. http://pcsupport.about.com/od/windows-8/a/update-drivers-windows-8.htm
    Sorry because of different timezone I might not be able to help/reply you right away.IF that happens I deeply apologize!
    **Click the White thumb if you like the answer.**
    **Please mark Accept As Solution if it solves your problem and only solves your problem, if you have any more questions please ask, this also helps others to solve related issues.**
    Feel yourself like home here, we are all happy to help, if you have an question reply or start a topic or pm me or an expert.

  • How to find TCodes for Config Transactions

    Hi All,
    How do I find the TCode for a Config Activitity node?
    For example.
    OX09 is for "Maintain Storage Location"
    OB52 is for FI Period closing/opening
    I know these from google search, but how do find tcodes for other IMG activity nodes?
    Thanks in advance!

    Go to SPRO and in Menu Additional Information Click Display key and IMG activity then Sytem will show the SPRO Transaction along with path
    Else Go to Particular Node say Create Purchasing Group and Right Click on Node and Select Display Technical Info and in ID tab the Last four Charecters wud be the Trxn code.
    In SPRO-IMG screen Only Few Nodes will Show  / have the Transaction codes.

  • How 2 find program for smartform

    how 2 find program for smartform

    Hi,
    go to TNAPR table and find the driver program for the layout.
    give the layout name, if you know the output type also give it.
    OR
    go to se71 and go to the layout , check the text elements syntax then it will show the possible driver programs in the window to choose.
    that way you can find..
    Or else...
    Go to the Tcode -> NACE
    OR
    Go to the T-code 'SMARTFORMs'
    Give your form name
    go to the general attributes.
    Check the Package name.
    then go to T-Code-> SE80
    there check the program name for a package wise
    Regards,
    KK
    Message was edited by:
            Kishore Kumar Karnati

  • How to find licence for Hyperion Software

    Hi,
    I want "Essbase Application Manager" for one of my team member but somehow our desktop support team is not able to find this software in their catalog . I think name of the software may be changed.
    I have same software on my desktop but it is inside "Hyperion Solutions" SOftware . Does anyone have any idea on my situatuin.
    Is there any Hyperion product in which I can ""Essbase Application Manager" for my day to day work
    Also I want to find licence for the Hyperion SOLutions software on my desktop. Can anyone tell me how I can find it ?

    What version of Essbase are you running? I think Application Manager was decommissioned in Version 6 (although it might have been Version 7). It was replaced by Essbase Administration Services(EAS). Application Manager does not need a license as it is just an administrative tool for Essbase. For the license number again it depends on the version. Later version do not have a license number, earlier versions do. In some cases you can get it from App Manager by getting server properties and it will show you. In other versions, you would start Essbase in foreground and it will show you the license as it starts. Essbase 7.16, System 9.3.1 and Version 11 do not have licenses that you have to enter.

  • How to find values for fields of  PROPERTIES  in cl_crm_documents= create_w

    Hi  everyone ,
    I am attaching files from local disk to CRM Opportunity by using method cl_crm_documents=>create_with_file .
    I am able to see files in SAP frontend portal , but the problem is some of the fields in properties tab coming blank .
    So how to find the NAME and VALUE fields of PROPERTIES structure in create_with_file  .
    Right now i am passing below fields these ar coming
    "-----Filling Properties structure
        ls_prop-name   = 'KW_RELATIVE_URL'.
        ls_prop-value  = wa_path-ls_name.
        APPEND ls_prop TO lt_prop.
        ls_prop-name   = 'DESCRIPTION '.
        ls_prop-value  = 'Strategy paper for action plan1' .
        APPEND ls_prop TO lt_prop.
    ls_prop-name  = 'LANGUAGE'.
        ls_prop-value = sy-langu.
        APPEND ls_prop TO lt_prop.
    but fileds like Attachment Type , Document Status ,  Line of Business , Business Year and Country of LE are not coming
    as i frontend is a CRM custom application to mentain opportunity .
    at prasent i am passing attribute Names and default values of these fields to properties structure  but then also i am unable to see it in front end.
    Please help if anybody knows where to find the NAME and VALUE fields for thse parameters.
    Regards
    Chetan

    I used insert statement to populate these fields in table CRMD_KW_DOC_GEN as these are custom fields.
    Regards
    Chetan

  • How to find datasource for cube 0BCS_C11

    Now we plan to do BCS. We want to create a cube ZBCS_C11 to copy real-time cube 0BCS_C11, the question is how to find datasource? Is there any standard datasource? Pls info, thanks!

    hi,
    For reporting purposes, you can use the virtual InfoCube 0BCS_VC11 u2013 Consolidation (Company/Consolidation Profit Center). It shares the same structure as InfoCube 0BCS_C11.
    go through this link.
    http://help.sap.com/saphelp_nw70/helpdata/EN/05/fdce0e59a82b4da957ead6e8022233/frameset.htm
    regards
    vadlamudi

  • Beginner advise needed on how to find link for app on ipad.

    I am an absolute beginner with a recently purchased ipad 2. I have just purchased garageband from the app store but how do I open it? There is no link on my ipad anywhere but when i check settings it says that garageband is installed. Can someone please advise me on how to find link or am i missing somethng really obvious here, cheers.

    Look for the Garage Band icon on one of your home screens. Tap on it in order to launch it. Swipe from one screen to the next (swipe to the left with your finger) if you do not see it on the first screen.
    If you still can't find it - swipe to the right from your very first home screen and a search feature appears on the screen. Type Garage Band in the text field and search for the app.

  • Aggregates...How to find out for a query..Any TC??

    Hi friends,
    How to find out whether the query is using aggregates or not, which are built on its base cube. Is there any TCode for it to know?. Without going to Infocube maintenance tab, can we know whether queries use aggegates???
    Thanks
    Murthy

    Go to RSRT transcation in bw
    there u select the query on  cube where u created an aggergates click Execute+debug(you vl be presented with select"show aggregates used"also check Nochache now click the tickmark.
    It  vl show you how many aggegates are there for the cubes and how many aggegates are used for the particular query used .Go to table RSDDSTAT this  shows every navigational step for a query and vch aggregates it used.
    thanks
    Prasanth Reddy

  • FI - How to find KOSTL for Single FI Documents / Invoices

    Hi experts,
    can someone explain me how to find the reight KOSTL for every Single Document/Invoice. Because the Filed within BSEG does not always contain
    the information (=empty). e.g for Documents in BSEG with KOART = 'A' or 'S' etc...
    Many Thanks in advance.
    Ali

    Hi Eric,
    this is exactly the point. I am trying to Extract towards BW with the
    0FI_GL_4 Datasource all Items for Debits / Kredits whisch are mostly coming from the (BSID/BSAD) / (BSIK/BSAK) but for the most records i do not have a Costcenter. But what i know is that for example Items with the KOART 'A' Assets have a costcenter assigned somwehere in the table ANLZ. What i am looking for are the rules with which i can get
    the KOSTL the diffrent KOART's in the BSEG.
    Which tables and conditions do provide the KOSTL for
    KOART EQ 'A' / 'S' / 'M' / 'D' or 'K'. I am new to FI and do not exactly
    now the relations / tables.
    With that information i will enhance my Extract to that selection logic and i will be fine
    hopefully
    many thank in advance to all who can help out with any kind of information to that topic.
    Regards,
    Ali

  • How to find segments for DB table fields?

    Hi,
    Please tell me how to know segments for perticular DB table fields.
    We can search it manually by looking into the IDoc segment fields
    But let me know if any other method is there?

    Hi Suman,
    Go to WE30(Enter Idoc type , click display button) , it will display list of segments, from there we can find the table fields.
    Regards,
    Vijay

  • How to Find BADI for a particular FM

    Dear Abapers,
    How do I find a BADI for a Particular Function Module.
    I did google and found three methods but none helped.
    1) going to Transaction se37 to find your function module.  Locate the function SXV_GET_CLIF_BY_NAME.
    this doesnt help me because i dont want to find badi for a transaction.
    2) got se24 and put a break point in the method of class cl_exithandler. I tried this didnt help.
    3) taking the pacake name and going to se80 and enter it there, you see enhancements. I did this , found the package name of that FM which is WZRE. but there are lots of enhancements and badis. i cant find the related one with discription.
    my FM is IDOC_INPUT_SINGLSETTRQS_CREATE. I really need help to find the correct badi for this.
    any help is appreciated.
    thanks.

    Hi,
         To find a BADI for any enhancement follow these steps,
    1) Put a brak point in method CL_EXITHANDLER=>GET_INSTANCE. This will give you the EXIT_NAME and the implementing class name of the BADI.
    2) Remove IF_EX from the implementing class this provides you the BADI name.
    Regards
    Ram

  • How can I tell with % how fast I am uplaoding a file...I know how to find it for DOWNLOADING, but not uploading.

    I just switched to Firefox...I used to have Google Chrome...when I would upload a file, a % number would scroll at the bottom showing me how much has been uploaded....how do I find that on Firefox....I know how to find the DOWNLOAD box, but not one for UPLOADING opr sending files

    I mistyped in my first post. I do indeed mark the video as AF41 (Cos4). It is the call control that I mark CS3 with the policy map to get around the old Tandberg bug that doesn't mark the call control.
    So do you think the queue 3, where Cos4 goes to, is big enough to handle 30 video streams of 480k? If my calculation is correct that would be 14.4mbps of video on a 100mbps port.
    With this config.....
    srr-queue bandwidth share 10 10 60 20
    srr-queue bandwidth shape 10 0 0 0
    ...is it telling me that queues 1 & 2 get 10% bw, queue 3 gets 60% and queue 4 gets 20% bw and is shared? If that is correct than 60% is more than enough for 14.4mbps of video.
    What happens if too much video overruns the queue?

  • Satellite U500-11C: How to find drivers for Win 7

    Good Morning,
    I bought an U500 11C and I would like to install Windows seven.
    But I have a problem, I don't know how to find all the drivers to run with windows seven.
    Is it possible to use the same drivers than with windows vista ?
    Do you know where I can find the drivers for my laptop to run with windows seven ?
    Thanks a lot in adavance.

    Hi
    At this time you will not find the Win 7 drivers on the Toshiba European driver page because the Win7 is not official on the market.
    But I found some beta drivers on the Toshiba US page.
    http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/home.jsp#
    There you can find drivers for different notebook series I think U505 series is very similar to U500 so try out the drivers!
    Bye

Maybe you are looking for