Polyphase and balanced sorting

please could any one help me in findind source code in java for polyphase and balanced sorting
thx for advance

Polyphase
see Knuth Art of Computer Programming vol 3, Sorting and Searching.
Knuth don't do no Java, just pure algorithms, which are rarely more that 5 or 6 lines long and translate into any language usually no more than a page of code in any language.
Get the book from the library, any real library will have it, code it up, hand it in, get an A.
Enjoy!

Similar Messages

  • Wrong folder and report sorting

    We installed BO XI R2 SP4. Folder and report sorting is incorrect. How to fix that?

    Hi Wallie,
    we just started our mirgation from 6.5 to XI
    so BO XI SP4 on .NET is our first XI installation.
    Sort order is incorrect for both folders and objects
    and for both asc and desc orders.
    Most of folders/objects are sorted correctly but several of them are out of order.
    Examples:
    __ASC order__                            DESC order
    Class                                        User         
    Customer                                  Report Samples
    Data                                         Report Conversion
    Document                                 Feature
    Accident                                   Admin
    Admin                                       Accident
    Feature                                     Document
    Report Conversion                      Data
    Report Samples                         Customer
    User                                         Class
    I believe it gives the picture.
    Valentin.

  • JOURNAL AND BALANCES PURGE 방법

    제품 : FIN_GL
    작성날짜 : 2003-05-14
    JOURNAL AND BALANCES PURGE 방법
    =============================
    PURPOSE
    GL_IMPORT_REFERENCES 테이블의 퍼지를 위해 이 작업이 강력히 권장됩니다
    Explanation
    goal: How to Archive and Purge Balances and Journal Detail
    fact: Oracle General Ledger
    fact: GLXSTPRG - Archive and Purge
    The period status must be permanently closed to archive and purge account
    balances, and journal batches, headers, and lines.
    주의사항: 퍼지 앤 아카이브를 위해서는 피리어드가 영구 close되어야합니다.
    Budgets can be archived and purged regardless of the period status.
    단, 버짓은 그렇지 않습니다.
    To Archive the balances
    1. Navigate to the Archive and Purge form
    The Navigation Path is: Setup>System>Purge
    패스는 이렇습니다.
    2. Select Balances, Journals, or Translated Balances to be archived.
    세 탭 중에서 해당사항을 고릅니다.
    3. Check the 'Archive Balances' box
    체크를 해야 아카이브가 됩니다.      
    4. Select the Balance Type to be Actual, Budget, or Encumbrance
    For Budgets, choose which Budget to archive.
    리스트박스에서 고르고 버짓인 경우 어느 버짓인지 명시합니다.
    5. Enter the periods to archive.
    기간을 넣습니다.
    6. Press the Archive/Purge button
    The Archive/Purge process copies account balances from the GL_BALANCES Table to
    the GL_ARCHIVE_BALANCES table. For journals, the Archive/Purge process copies
    journal details from GL_JE_BATCHES, GL_JE_HEADERS, and GL_JE_LINES to
    GL_ARCHIVE_BATCHES, GL_ARCHIVE_HEADERS, and GL_ARCHIVE_LINES. Any inported
    references on the GL_IMPORT_REFERENCES will be copied to GL_ARCHIVE_REFEENCES.
    카피될 테이블 이름들입니다.
    7. Review the Archive and Purge Audit report to verify the data was
    successfully archived.
    확인하시면 됩니다.
    8. Export the archive tables, and copy the export files to tape.
    테이프나 다른 걸로 백업하실경우입니다.
    9. Purge the data.
    이후 퍼지방법에 대해 설명합니다. 먼저 아카이브를 했으니 이제 퍼지를
    할수 있습니다.
    To Purge the balances
    1. Navigate to the Archive and Purge form
    The Navigation path is Setup>System>Purge
    2. Select Balances, Journals, or Translated Balances to be purged.
    3. Check the 'Purge Balances' box
    요령은 동일합니다.     
    4. Select the Balance Type to be Actual, Budget, or Encumbrance
    For Budgets, choose which Budget to purge
    5. Enter the periods to purge.
    자동적으로 가장 오래된 이전의 퍼지기록을 보여줍니다.
    오래된 순서대로 수행하셔야 합니다.
    6. Press the Archive/Purge button
    7. Review the Archive and Purge Audit report to verify the data was
    successfully purged.
    8. Export, drop, and reimport the new tables (GL_BALANCES, BATCHES, HEADERS,
    and LINES)to shrink the size of the tables and reclaim lost disk space.
    줄어들었는지 확인하시면 됩니다.
    Example
    Reference Documents
    -------------------

    unsolved

  • Transfer Open items and balance of one GL to new GL Account.

    Hi,
    I have an account which has around 10000 postings in it.However this account is not open item managed.I want to switch to Open Item Management for this account,but SAP does not allow as there are postings made to it.
    I searched forum for solution on the same,and I got to know to transfer the postings and balances to new account.
    The problem I have is I want all open items to be present in the new GL I create.With f-04(transfer posting with clearing) I will have to transfer each and every posting individually.As I said there are almost 10000 entries in this account. Is there any way I can transfer all open items and balance at once in the new GL?
    Pls guide

    If you want to transfer all the items to the new gl, you have to transfer it manually or use a LSMW or BDC to transfer the open items
    Regards
    Sanil Bhandari

  • How to acheive Pagination and Dynamic sorting in Web layout.

    Hi All,
    I'm new to Oracle Reports. I use Report Builder 10.1.2.0.2.
    I tried creating a template for simple tabular report. I modified the tempalte for Paper layout, Web layout ie modified .tdf, html, css files.
    When the data is dispalyed in the web browser, i need to do Pagination and dynamic sorting (ie when the column heading is clicked, it needs to do sorting by that column).
    In the jsp page of the report, it is possible but i want to incorporate this functionality in the Template. So that a single template can be used across multiple reprots with out any modification.
    Can any one please tell me how to do this.
    Please reply me at the earliest. Its very urgent.
    Thanks & Regards,
    P. Gayathri Devi

    Igor,
    You'll need to switch from using Partial Page Rendering to full page submits on that report. In version 4.0 we should be getting more control over event handling in PPRs but to what extent is still unknown.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur

  • I-photo:  I used 2 cameras to take pictures on a trip --- i have put the pictures from both cameras into an album --- when i click on view and then sort by date, the pictures do not sort by date --- any ideas on how to get the pics sorted by date?

    I-photo:  I used 2 cameras to take pictures on a trip --- i have put the pictures from both cameras into an album --- when i click on view and then sort by date, the pictures do not sort by date --- any ideas on how to get the pics sorted by date?

    Select all the photos that you need to change, then click the "Photos" menu and choose "Adjust Date and Time".
    If you add a year, it will adjust all the photos that you selected by adding a year (so if you accidentally select one of the photos that already has "2012", that will change to "2013"). 

  • Sub-Contracting material Issued to Vendor and balance to be Issud

    Hi,
    Sub-Contracting material Issued to Vendor and balance to be issued against the Sub-contracting Purchase Order.
    Please suggest T.Code for the same.  (Same Like ME2O, but PO number should be an input parameter)
    For example I have Created PO with header Material for 1 quantity which having one child item and qty say 20 numbers, and issued child material to vendor 10 numbers (541) and balance is to be issued to vendor is 10 numbers, now I want a report which gives PO number, Header item with qty, total requirement of qty for the child item with line item number, issued child item with qty and balance to be issued child item with qty.
    Thanks
    Ramesh.G

    Report MB51 is there. Here you have to input your Purchase order number and execute but, it will show only material issued to subcontractor through 541. It will not show the balance quantities.
    And there is no such standard report which will show information how much issued to subcontractor and how much is balance based on Purchase order.
    You can develop a z report with the help of abaper.

  • PCA and Balance Sheet Accounts

    My client wants to generate Profit Center Financial Statements e.g., Balance Sheet (B/S) and Profit and Loss (P&L)  The entire Chart of Accounts was assigned to Profit Centers, and all B/S and P&L accounts can be viewed in the GLPCT table.  This table is populated with all of the beginning balances for the B/S accounts.  I activated DataSource 0EC_PCA_3 and 0EC_PCA_4.  DataSource 0EC_PCA_4 provides beginning balances for a handful of B/S accounts from table GLPCA e.g., A/R, A/P, Inventory, and Fixed Assets.  However, I would like to be able to report on all B/S accounts with drill down capability to the line item level.  What would be the best business practic for delivering this capability?  My client is on R/3

    Are you sure you want line item drill down on the sub ledger recon accounts on PCA - ?
    Are the month end jobs posting balances per PCA - 1KEK etc..
    if you want line item detail (not on the sub ledger accounts - but on the rest of the balance sheet then I suggest..
    0EC_PCA_3 (GLPCA) into a line item cube (this will hold line items for all P&L and 99% of balance sheet accoutns - ie not the sub ledgers)
    0EC_PCA_1 in delta mode to a cube that is similar to GLPCT
    0EC_PCA_4 to a cube that is similar tp GLPCT (this will  take the subledger data)
    add in the OSS note to calc 0BALANCE properly in the update rules (so you have a balance even thoguh there is no movement inthat period
    Multicube the 0EC_PCA_1 and 0EC_PCA_4 cubes - this will then give you a full P&L and Balance sheet at profit centre, functional are, gl accoutn and co code level
    Then RRI down to the 0EC_PCA_3 cube if you wish line items (althoug not for the subledgers)
    You need to ensure all the GL accoutn sare set up in PCA config in R3 - so everythign posts
    You also need to be very very very careful with data taken on in R3 - ie if you do the sugegsted wya of doing history loads for TBs and custoemr open items - then you are not going to get decent profit centre allocations in PCA
    And .. this is all dead anyway as the new extended GL functionality in R3 kills all this in ECC5 - as you can allocate "profit centre" or segmentation at posting of invocie time or cash posting and don;t have to wait until month end to run 1KEK etc

  • Trial Balance, P&L and Balance sheet at plant level and profit center Level

    HI Expert,
    My Client has multiple plants under same company code, hence need the Trial balance, P&L and Balance sheet at plant level
    Is it possible in sap to have the Plant level financial report without using the Business area concept.
    Secondly  each product is identified as profit center and in every transactions each transaction is corectly mapped to profit center, without using the F.5d (Transfer the BS items to Profit center) will it be possible to have the Trial balance, P&L a/c
    and Balance sheet at profit center level. If possible what is the T-code which will give such reports.
    Thanks & Regards
    Veda Pandit
    9844769403

    plant is not an FI concept, you need Business Area's
    any PC report should show revenue, COGS. BS items need to be transferred.

  • Calcolate DEBIT ,CREDIT and BALANCE

    how can i calcolate DEBIT ,CREDIT and BALANCE from table " KNC1"
    according to period .
    as if peroid between 01.01.2010 and 01.10.2010
    so calcolate UM01S ,UM02S to UM10S   AS  "DEBIT "
    AND             UM01H ,UM02H TO UM10H  AS " CREDIT "
    AND             UM01U ,UM02U TO UM10U AS "BALANCE "
    WAITING YOUR HELP
    THANKS

    if user wants day wise then make use of BSAK+BSIK, here u will get all line items daywise , i mean to say Posting daywise.
    BUDAT        31.03.2003---->posting date
    BLDAT        31.03.2003
    CPUDT        31.03.2003
    WAERS        INR
    XBLNR        T&E-29-30.3-PNPT
    BLART        PA
    MONAT        3
    BSCHL        31
    ZUMSK
    SHKZG        H------------>D/C
    GSBER--------------------->Business Area
    MWSKZ-------------------->tax Code.
    DMBTR        1,507.00
    WRBTR        1,507.00
    regards
    Prabhu

  • Profit center wise P&L and Balance Sheet for 12 segments as per AS-17

    Hi Experts,
    I am woking in ECC 6.0. My Client has 12 Segments. 10 Cost Centers. They want segment wise P&L and Balance Sheet. Pl advise how to map..The options are :-
    1.  Use segment reporting - if i define 12 segments = 12 profit centers, then the problem is one to one assignments of profit centers to cost centers as there are only 10 cost centers and profit centers will be 12.
    2. Should i go with Business ?
    3. Will the Profit Center approach help ? then again one to one mapping to cost centers is not possible...
    Pls help...its urgent
    Regards
    Pyare

    Hello
    This is posible if you use the New GL functionality in ECC 6.0
    The New GL functionality works on the totals table FAGLFLEXT instead of the GLT0 which was used in the Classic GL. The Segment field is a standard field in the table FAGLFLEXT.
    For creating segement wise financial statements,
    1. You have to first define the segments in the enterprise structure
    2. Link the PC to the segments (you have field for segment in the PC master data)
    3. The standard report (S_PL0_86000028) will generate the segment financial statements for a FSV.
    Thanks,
    Anvesimo

  • UP loading Customer open item and balance

    Dear All,
    We are going live in few days. My client had given me a file for  all the open items and a file for the balances. We lready have the customer masters in SAP. I have to upload the open items as well balances to SAP using LSMW. 
    I know for uploading in LSMW i have to call tr code FB01 but what about Balance Upload? Which transaction Code I have to call in LSMW for balance upload.
    But how to do.
    Please provide me steps for doing that.
    Thanks in Advance
    Pratiksha
    My email id is [email protected]
    If possible please send me any documentation on this

    Hi Pratiksha & Smile,
    At the time of Uploading Cut Over Data, in addition to all the required Gl accounts we would also create Cutover Data Upload clearing Gl Account.
    When you are trying to Upload the Debit items in the Trial balance you would credit this Gl account and Debit this GL account when you are trying to upload Credit items in the Trial balance.
    Please note the point that the Assets GL Accounts have to be converted to normal GL accounts so that data can be entered, as you may not be able to upload the balances as they would be configured as Recon account and balances cannot be posted directly.
    Similarly the Customer and Vendor balances also have to posted separetly as these Gl accounts are also Recon accounts.
    Inventory balancces would be  uploaded from MM module.
    Once all the balances in the trial balance are uploaded, this clearing GL would have a nill balance. Then this Gl account has to be blocked for further posting.
    Once the Assets are Uploded individually using AS91,go to T Code OAMK and reset the Asset Gl accounts to Recon accounts.
    Regards
    Phani

  • Creating a KD Tree and only sorting the points once for each axis

    So right now I have some code for creating a KD Tree (2-Dimensions) but I am sorting the x and y values for the node each time I create a new node. Then I am taking the median, setting that as the nodes point, and passing on the left half and right halves of the remaining array to their respective children. I am using Arrays.Sort which I believe takes O(n log(n)) time per sort (once per node), but I have been reading a lot of stuff that states you can get the median in linear time so that the total build time is O(n log(n)). Unfortunately I am having difficulty understanding how. Here is a snippet of an explanation I found.
    Each node has both x-list (ordered in x-coord.) and y-list (ordered in y-coord.)
    Each pi in x-list and y-list is linked to each other.
    Both x-list and y-list can be built in linear time using the two lists of its parent.
    Thus total time to build all x-lists and y-lists is:
    T1 (n) = O(n) + 2T1 (n/2) = O(n log n).
    Since each splitting line can be found in O(1) time (via sorted lists), and there are n − 1 splitting lines in a kd-tree,
    Thus total time to find all splitting lines is
    T2 (n) = (n − 1) · O(1) = O(n).
    Hence, total prepossessing time
    = T1 (n) + T2 (n) = O(n log n).My question is, how can I build the arrays in linear time at each node? I have tried working it out on paper for the past few hours but lets say I sort the array using X first and I know that indices 0 - median will be on the left, however even if I had sorted the array by Y also, there is zero guarantee that all the points I need from x[0-median] will be in y[0-median]. They will obviously be included in x[0-median] but they will be sorted by x and not y, forcing me to resort at every single node.
    Any idea?

    swinte1 wrote:
    My question is, how can I build the arrays in linear time at each node? I have tried working it out on paper for the past few hours but lets say I sort the array using X first and I know that indices 0 - median will be on the left, however even if I had sorted the array by Y also, there is zero guarantee that all the points I need from x[0-median] will be in y[0-median]. They will obviously be included in x[0-median] but they will be sorted by x and not y, forcing me to resort at every single node.
    Any idea?So for example, you have 5 points and you sort them by x and y coordinates in two separate arrays:
    x-list: 6 1 4 3 2 5
    y-list: 6 5 1 2 3 4
    Now you want just the points to the right of 4:
    x-list: 3 2 5
    y-list: 5 2 3
    Create the x-list by iterating from the midpoint to the end.
    Add each element in the x-list to a set..
    Iterate through the y-list from left to right:
    If the point in the y-list is contained in the set, add it to the new y-list.
    This creates the arrays in linear time while keeping the points sorted. It does iterate over twice as many points in the y-list as needed though.

  • Non Financial Accounts,and Balance,Balance Recurring,Types of data and type

    Hi Can Any one make me clear for the following?
    1.In HFM Account Types we can find Balance and Balance Recurring what it means? is it completely relating to Finance and Accounts Topics? if so give me few good examples to
    understand as regards to HFM where this need will come?
    2. What are Non Financial Accounts we use in HFM? do we use to load?i if so what is the format like Excel or Data form?
    3. What is Head count? what its purpose in relation to HFM? in what situations we have to think and recall about this, mean to say by doing which HFM Activity we can Understand
    about this Simply?

    1) Balance and Balance Recurring types contain data that does not accumulate from one period to another, and do not translate. Headcount is typically a balance, as is Square Footage, for reporting real estate information, for example.
    2) Non financial accounts are typically those which are not currency-related, such as headcount, units sold, number of customers, days sales outstanding, number fo new customers, etc. The entry of this data can be any way other data is loaded - either directly via load file into HFM, through forms, grids, journals, smart view, or FDM, among others I'm sure.
    3) Headcount is often a metric for growth. It is often used in ratios, such as revenue or margin by headcount. Even if you acquire a company, there remains a ratio between revenue and headcount, so it's a good metric for organic and acquired growth.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    Hi,
    May the below code is useful for you, but I dont know how to sort.
    Edit the tag as per your job request.
    alert(app.activeDocument.xmlElements[0].contents)
    //Second alert
    var xe = app.activeDocument.xmlElements[0].evaluateXPathExpression("//marginalnote");
    alert(xe.length)
    for(i=0; i<xe.length; i++)
        alert(xe[i].texts[0].contents)
    Regards
    Siraj

Maybe you are looking for

  • Fixed asset Master Data import

    Please can anyone help me resolve this error messages when importing Fixed asset master data "Net book value of asset must be greater or equals to zero" Am using SAP Business one version 9.0 pl9

  • Progress tracking

    Hello Friends, please let me know how to monitor the status of PO till GRN, that is Progress tracking and set the events with offset days; Thanks

  • Term of Payment vary on material

    Dear All, My client have 5 products and almost 100 customers, term of payment is different for every material, how should i cater this scenario, I can assign only one term of payment in the customer master. I have an idea to cater this through custom

  • Excel changes needed from RTF Template

    Hi all, I created RTF template which it publish in excel format.I am getting correct report but here i want some Excel settings from RTF template. These all properties i want in Excel  output file which is generated from RTF. 1) Page number must be d

  • Webcenter Capture OCR Engine and Languages

    Hello, does anyone know which OCR engines are used in full document OCR recognition? Is there support for recognition of Greek text? Thanks in advance!