Need suggestion for large objects

Hi
I have to work out a solution for best result from a permutation of 13 elements,
so the number of permutations is
1X2X3X4X5X6X7X8X9X10X11X12X13 = 6227020800
So how do i go through all these permutations to find the solution.
Loading this into an array is on possibility, but then there is danger of heap size, i was thinking of any embedded database which i can put along with my application,
any ideas, or suggestions, has anyone done any thing like this
Ashish

Hi
The problem is kind of traveling sales man or CPM
suppose there are 4 nodes A,B,C,D
i need to find the best combination to visit all the nodes,
so the possible permutations are
A-B-C-D
A-C-B-D
B-A-C-D
B-C-A-D
so for 4 nodes, i have 4 X 3 X 2 X 1 = 24 permutations.
Now if the distance between A-B is 1.0 then B-A can be 2.0,
so the values can be
A-B is 2.0
A-C is 3.0
A-D is 1.5
B-A is 3.5
B-C is 1.6
C-D is 2.1
So what i am trying is
if A-B-C-D is 2.0+ 1.6 + 2.1 = 5.7 and i then i will have 24 solution and the lowest is one i want.
I tried to find a traveling sales man algorithm in java, but could not find any that can be use full for my problem
Any ideas

Similar Messages

  • Need Suggestion for Archival of a Table Data

    Hi guys,
    I want to archive one of my large table. the structure of table is as below.
    Daily there will be around 40000 rows inserted into the table.
    Need suggestion for the same. will the partitioning help and on what basis?
    CREATE TABLE IM_JMS_MESSAGES_CLOB_IN
    LOAN_NUMBER VARCHAR2(10 BYTE),
    LOAN_XML CLOB,
    LOAN_UPDATE_DT TIMESTAMP(6),
    JMS_TIMESTAMP TIMESTAMP(6),
    INSERT_DT TIMESTAMP(6)
    TABLESPACE DATA
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 1M
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    LOB (LOAN_XML) STORE AS
    ( TABLESPACE DATA
    ENABLE STORAGE IN ROW
    CHUNK 8192
    PCTVERSION 10
    NOCACHE
    STORAGE (
    INITIAL 1M
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOCACHE
    NOPARALLEL;
    do the needful.
    regards,
    Sandeep

    There will not be any updates /deletes on the table.
    I have created a partitioned table with same struture and i am inserting the records from my original table to this partitioned table where i will maintain data for 6 months.
    After loading the data from original table to archived table i will truncating the original table.
    If my original table is partitioned then what about the restoring of the data??? how will restore the data of last month???

  • Need suggestion for designing a BEx report

    Hi,
    I need suggestions for designing a BEx report.
    Iu2019ve a DSO with below structure:
    1. Functional Location u2013 Key
    2. Maintenance Plan u2013 Key
    3. Maintenance Item u2013 Key
    4. Call # - Key
    5. Cycle u2013 Data Field
    6. Planned Date u2013 Data Field
    7. Completion Date u2013 Data Field
    This DSO contains data like:
    Functional -
    Plan --- Item -
    Call# --- Cycle -
    Planned Dt -
    Completion Dt
    Location
    11177 -
         134 -
         20 -
         1 -
    T1 -
         02-Jan-2011 -
         10-Jan-2011
    11177 -
         134 -
         20 -
         2 -
    T2 -
         15-Feb-2011 -
    11177 -
         134 -
         20 -
         3 -
    T1 -
         15-Mar-2011 -
    11177 -
         134 -
         20 -
         4 -
    M1 -
         30-Mar-2011 -
    25000 -
         170 -
         145 -
         1 -
    T1 -
         19-Jan-2011 -
         19-Jan-2011
    25000 -
         134 -
         145 -
         2 -
    T2 -
         20-Feb-2011 -
         25-Feb-2011
    25000 -
         134 -
         145 -
         3 -
    T1 -
         14-Mar-2011 -
    Now Iu2019ve to create a report which will be executed at the end of every month and should display the list of Functional Locations whose Cycles were planned in that particular month, along with the last completed Cycle/Date.
    Thus based upon above data, if I execute report at the end of (say) March then report must display:
    Functional ---     Curr. Cycle --- Planned Date --- Prev. completed Cycle --- Prev Completed Date
    Location
    11177 -
         T1 -
         15-Mar-2011 -
    ---     T1 -
    --     10-Jan-2011
    11177 -
         M1 -
         30-Mar-2011 -
    ---     T1 -
    --     10-Jan-2011
    25000 -
         T1 -
         14-Mar-2011 -
    ---     T2 -
    --     25-Feb-2011
    Any idea how can I display Previous Completed Cycle and Completion Date (i.e. the last two columns)?
    Regards,
    Vikrant.

    hi vikrant,
    You can a Cube at the reporting layer  which gets data from DSO and which has these 2 extra characteristics completion date and previous cycle along with other chars and keyfigures from DSO.
    You can populate these  based on your logic in the field routine.
    Hope it helps.
    Regards
    Dev

  • Need help for finding objects impacted by size change for an infoobject

    hi all,
    need help for finding objects impacted by size change
    for xxx infoobject, due to some requirements, the size to be changed from
    char(4) to char(10), in the source database tables as well as adjustment
    to be done in BI side.
    this infoobject xxx is nav attribute of YYY as well as for WWW
    infoobjects. and xxx is loaded from infopkg for www infoobject load.
    now that i have to prepare an impact analysis doc for BI side.
    pls help me with what all could be impacted and what to be done as a
    solution to implement the size change.
    FYI:
    where used list for xxx infoobject - relveals these object types :
    infocubes,
    infosources,
    tranfer rules,
    DSO.
    attribute of characteristic,
    nav attribute,
    ref infoobject,
    in queries,
    in variables

    Hi Swetha,
    You will have to manually make the table adjustments in all the systems using SE14 trans since the changes done using SE14 cannot be collected in any TR.
    How to adjust tables :
    Enter the table name in SE14. For ex for any Z master data(Say ZABCD), master data table name would be /BIC/PZABCD, text table would be /BIC/TZABCD. Similarly any DSO(say ZXYZ) table name would be /BIC/AZXYZ00 etc.
    Just enter the table name in SE14 trans --> Edit --> Select the radio button "Save Data" --> Click on Activate & adjust database table.
    NOTE : Be very careful in using SE14 trans since there is possibility that the backend table could be deleted.
    How to collect the changes in TR:
    You can collect only the changes made to the IO --> When you activate, it will ask you for the TR --> Enter the correct package name & create a new TR. If it doesn't prompt you for TR, just goto Extras --> Write transport request from the IO properties Menu screen. Once these IO changes are moved successfully, then the above proceduce can be followed using SE14 trans.
    Hope it helps!
    Regards,
    Pavan

  • Need Suggestion for design

    Hi,
    My application is based on multiple forms. When user logged into application he has list of programs.
    Now each program has multiple forms which need to field step by step and at the last page it should save the data.
    So, right now as per our design we create bean for each form, each bean has at least 20 variables and generate their objects with session scope. When use exit from the last page we manually remove all the objects.
    Now the problem with this pattern is that we receive PemGenSpace error in every week.
    The reason is we use to store large object to session.
    Can you please suggest me a better solution to overcome this problem?
    Thanks.

    So let say if user is on 4th form now if he jumps to the 1st form we have to fetch it from the database that is also cost to performance.
    To save this cost we use to save the data into session.Which has its own cost, which is much higher, as your server stops working.
    It is futile to quibble about a database lookup or two when your cure is worse than the disease. You have to put the data somewhere else, that doesn't cost memory. In other words, the database.
    What we have here is premature optimization. Have you even measured what the cost of the extra lookups is?
    As per your suggestion if we save data to DB with auto commit false then are we able to retrieve those data from DB?Of course, as long as it's inside the same transaction.

  • Need suggestions for concurrent reads while deleting all entities

    Hello,
    we need some suggestions for the following use case, as we cannot seem to find the correct transaction locking combination to meet our needs.
    We are using BDB JE 4.1.10, and the entityStore is transactional. In a nutshell, BDB JE is used as a Cache for specific data that is pulled and updated regularly from a source Oracle DB. The application that holds BDB is a realtimel app, and response time is critical.
    In order to avoid having to merge (Insert/update/delete) entities for some of the tables that are very static and small (a few hundred records that might change every day or so), we are trying to simply delete all records (with an EntityCursor loop, since there is no 'deleteAll' that we could find) and reinsert all data every 5 minutes, and then committing when the whole process is complete. This should always be very quick, but we are not immune to timeouts from the source Oracle DB, so the transaction can be long.
    Ideally, while the delete/insert is happening, we want any concurrent read operations to return the old data (before the delete). We have made a test that locks the updater thread between the 'delete all' and 'update all' methods, so that the delete cursor is closed, but the Tx is not yet commited. We have tried the following for our reader thread:
    1- If we get() a deleted entity with a LockMode.READ_UNCOMMITTED, we get a null entity back.
    2- If we get() a deleted entity with LockMode.READ_COMMITTED, we get a LockTimeoutException.
    We have also considered simply using truncate on the EntityStore, but this requires closing and reopening the DB, so this would not work for our need to always return a value, instantly.
    Any ideas, suggestions on how we could do this in a simple manner?
    Thanks,
    Max

    Hello Max,
    I understand the issue you're describing.
    I think the best performing solution by far is to load the new data into new databases while servicing reads from the old databases. When the load is complete, reads can be diverted to the new databases, and the old databases can then be removed.
    Unfortunately, this is easier to do with the base API than with the DPL, because the DPL is managing the underlying (base API level) databases for you.
    However, even using the DPL, this approach could be very straightforward if you happen to be keeping this data set (the one that needs to be reloaded) in a separate EntityStore, or you can change your application to do so. If so, you can create a new (empty) EntityStore with a different name and use this store for loading the new data. When the load is complete, divert reads to the new EntityStore object and remove all databases for the old EntityStore.
    If this is impractical, please explain, and I'll try to suggest a different solution. If you cannot use a separate EntityStore for this particular data set, then the solution may be more complex.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Need suggestions for upgrading my hard drive...(700 gigs, completely full.)

    I like having a large internal drive. I want to buy one of those Western Digita 2 Terabyte SATA drives and put it in.
    Problem is, I'd need a way to time-machine the 700 gig drive first. And for that I'd need an external 700gig drive. And a lot of free time.
    Any suggestions?

    All you need to do is connect an external drive to your iMac and run Time Machine, if you are going to put a 2 TB drive inside your iMac you are not going to get any much larger than 2 TB right now. My recommendation is to rethink the way you store things. I would recommend instead of one large internal drive to get 2 external drives, all being FW 800 for speed. You could do something like this.
    External HD #1 used as a bootable clone to the internal drive. This drive does not need to be large, less than 100 GB would be fine. You can create a bootable clone using SuperDuper or Carbon Copy Cloner.
    External HD #2, move most of your data from the internal drive to this drive. If you get a FW 800 drive as recommended you will still have plenty of speed and most likely not perceive any loss in performance.
    External HD #3, use this as your Time Machine Drive. This doesn't have to be FW 800 but it does make it easier if it is because you can daisy chain all the external drives together.
    It's not cheap but it is a more efficient way to work in my opinion.
    Regards,
    Roger

  • Need suggestion for USB Bluetooth Adapter for HP Z230 Workstation

    I've just purchased an HP Z230 Workstation, with an I7 processor.  I need to equip it with Bluetooth capability so that I can connect the computer to an old Palm Tungsten T2. 
    There are gobs of USB 4.0 Bluetooth adapters / dongles on the market, but reading buyer's comments, they all seem to have some type of problem with compatibility or installation issues on something.
    Does anyone have a suggestion for a USB Bluetooth adapter that has worked well with the Z230?
    Thanks in advance for any help.
    Terry
    This question was solved.
    View Solution.

    I suggest joining the Enterprise Buisness forum and posting your query there.
    Your  HP Z230 Workstation is a business class HP product and not than a consumer class device. This is the HP Consumer support forum.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Need suggestion for new laptop

    Hi, everyone I'm needing suggestions. I had a touchsmart tx2z however after nearly 4 years it has bit the dust couldn't be saved after its last crash computer would turn on but screen would stay black and ome of the keys like the caps lock would flash. Computer guys say my motherboard has gone bad.  I'm looking for another computer now but would like one that is similar to the hp touchsmart but does not cost a lot of money.  

    Here is the current line-up of HP Touchscreen Laptops. Prices start at about $650 and go up from there. $650 sounds OK to my for a touchscreen laptop, but price is a subjective item. If these are too rich for you, you could always look at regular laptops.
    Please send KUDOs
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • Need suggestion for choosing Java development enviroment

    Hi Evereyone,
    I am new to Java Desktop Application.I need help on choosing proper Java technologies and development tool.
    We have an existing CLIENT/SERVER based distributed control system, which was developed in C++(Server side) and VB(Client GUI).Now we are think of migrating the system to Java platform.
    Here is the outline:
    We want to create web based application that will run on windows and linux (linux on embedded PC).
    The application should be able to support 10 � 100 users at once accessing/editing database.
    We will also need to create a communication server that will run on web server P.C. that will communicate tcpip to field panels/log to db, as well as allow web screens to send/receive commands with field panels etc.
    Could any one give me some suggestion about it?
    I am thinking of Using J2SE 5.0, including RMI, JDBC and Swing for GUI. As for field panels, may choose J2ME.
    Thank you very much in advance.

    Thanks, zadok .
    Actually, I don't have the system requirements neither. All I know is the following outline:
    "We want to create web based application that will run on windows and linux (linux on embedded PC).
    The application should be able to support 10 � 100 users at once accessing/editing database.
    We will also need to create a communication server that will run on web server P.C. that will communicate tcpip to field panels/log to db, as well as allow web screens to send/receive commands with field panels etc."
    It is a interview question, which need me to do research and give some suggestions. What I want to know is to figure out what kind of Java technology is necessary for developing this system because I want to make sure I head to right direction.
    I know somehow it is hard to give suggestion based on this limited information.
    One more thing I was confusing is the server-side architecture.
    I need suggestion about sever side architecture:
    a. write a dedicated server-side program, which act
    as communication server to monitor and control field
    panel, also act as server-side applicaiton by using
    RMI to communicate with Client-side communication.
    b. choose a general web server architecture. Put
    everything in server side in Web Server, for example
    Tomcat AS container, implementing the Communication
    server as Web Service and the request from
    Client-side go to Web Server first, then dispatch to
    a proper web service.Why did you not include this information in the original question!
    Why don't you just use Tomcat?
    For your answer, "Why don't you just use Tomcat?", does it mean Tomcat without Web Service will be enough for this system development? Could you give me some detail about it?
    Thank you very much, zadok.

  • I need suggestions for an online trading application

    Hi,
    I am going to develop an online trading application. I have decided to use JAVA EE 5 and I have read "The Java(tm) EE 5 Tutorial". Because I am a (C++) programmer and new to Java, I need suggestions to start development.
    Here is summary of the system in my mind. There will be
    a database to store user's information and operations,
    a web client for creating and managing user accounts,
    a desktop application and web client for users for online trading and
    an application client for brokers for risk management.
    Here is a sample scenario for flow,
    - User wants to create an account
    - Company creates an account for user
    - user gets the prices and trades via application client (web or desktop)
    - system informs dealers and broker via their client platform
    - broker perform necessary operations.
    Java EE 5 Application model fits the system I am trying to develop but I feel I still need some guidance and there are a few things I couldn't figured out yet. For these reasons I want to develop a prove of concept system and this is the system in my mind.
    - A simple database
    user (user_id, user_login, user_password, user_name)
    stock (stok_id, stok_name)
    operation (op_id, user_id, stok_id, op_type, op_amount, op_value)
    - A price server
    will generate random prices and push new values to registered clients
    - A web client to create new users (for admin)
    - A web client to display operations of users (for user)
    - A desktop application and web client for operation entries (for users)
    displays prices coming from price servers, sends users trade requests
    - A desktop application client for informing admin about trades (for admin)
    when a user buys or sells something, this client notified (user buy/sell something)
    What do you offer for this sample system?
    Which is the best IDE?
    Which Application Server should I use (scalability and speed is critical)?
    Which Java EE APIs should I use?
    JSP or JSF?
    Will I need hibernate?
    And so on.. I need some points to start and go.
    Thanks for any help.
    Ahmet

    It wouldn't be an arbitrary track. However, maybe you could make an arbitrary track by dividing the track into segments. Each segment is either a straight line or an arc. These are easy to model the cars' behavior on, because you'll have a straightforward way to determine the direction the car should be facing, and the range to the left and right where the car can stray and still be on the track.

  • Need suggestions for OM implementations

    Hi All,
    We are in the process of mapping Clients OM structure. Client has no relevant data related to their OM structure. They want us to create a structure and relations so that they get a OM structure. These guys have multiple reporting for Loan and Leave application and have more that 30 branches. Their reporting structure is based on their products. And each branch handles sales of all their products and is headed by a branch manager who finally reports to VP of that product.
    1:Any suggestions on how to go about mapping the structure???
    2: If I create the objects Org Units, Positions and Jobs and their corresponding relations in Dev, can I transport it to PRD??

    For Leave application is approved by his Line manager but loan is approved only by the branch manager. Also since its a sales company, emp working at Location A would be reporting to the Manager based at Location B.
    Location Cannot be Constrains since the Employee belongs to Same Organisational Structure , while defining the structure i think we shd be Take care of two reporting that is line managere and branch manager for this we are going for any custom Relationship since we have only  one Relationship that is Superior , once this is decided we the rest part will be done through work Flow
    2: what are the standard reports for transporting objects and when you said LSMW or BDC, u mean to download IT 1000 and IT 1001from Dev and upload to Prd???
    Read the documetation of RHMOVE00 from SE38 Tcode
    We have to upload the same sheet in both PRD and DEV

  • Need suggestion for creating 'whispy smoke'

    Hi All,
    I'm trying to figure out a way to create a cartoonish looking whispy smoke. I've played with Trapcode Particular and that creates some very realistic looking smoke, probably too realistic.  I've played with CC Particle World, and also tried painting the smoke and then animated it on with a mask and a stroke set to reveal the original based on the mask.  Nothing really gets close to what I'm looking for.  Here's a sample of the client's original art:
    Any suggestions for how to achieve this?
    Thanks,
    CJ

    Trapcode 3D Stroke with taper enabled.
    Mylenium

  • Need suggestions for a new printer with OS 10.9.5

    I have a 2010 HP 6500 A Plus printer that has worked well with my iMac circa 2010. Printer is not feeding paper. It won't scan. Are there suggestions for a new compatible printer for OS 10.9.5.?

    Hey Debbisita,
    Thanks for the question. It sounds like you are experiencing issues with your Printer and OS X. Before opting to purchase a new printer, you can try these troubleshooting steps to completely isolate the issue:
    Troubleshooting printer issues in OS X - Apple Support
    http://support.apple.com/ts3147
    Follow these steps until the issue is addressed:
    Make sure that the printer is powered on, has ink / toner, and that there are no alerts on the printer’s control panel. Note: If you cannot clear an alert on the printer's control panel, stop here and check the printer's documentation or contact the manufacturer for support.
    Ensure the printer is properly connected to a USB port on the Mac or AirPort base station / Time Capsule. If the printer is a network-capable printer, make sure that it is properly connected to your home network.
    Use Software Update to find and install the latest available updates. If an update is installed, see if the issue persists.
    Open the Print & Scan pane or Print & Fax (Snow Leopard) pane in System Preferences.
    Delete the affected printer, then add the printer again.
    If the issue persists, try these additional steps:
    Reset the printing system, then add the printer again.
    If the issue still persists, reset the printing system again.  Download and install your printer's drivers. Then, add the printer again.
    Contact the printer vendor or visit their website for further assistance.
    Thanks,
    Matt M.

  • Need suggestions for good online Adobe classes in photoshop, ill. indesign etc.

    Hi I am a graphic designer and would like some suggestions for good online Adobe classes ... I found
    Adobe Master Series Online Training Library at the Adobe store and was wondering has anyone had good, bad ugly experience with this before I make the purchase. The suite offers training in Photoshop, Illustrator, InDesign, Dreamweaver, Flash, and various Macromedia titles so it covers it all for me in one go.

    A less expensive, non-subscription option would be http://www.vtc.com they offer many video cds for applications that have given many I know a leg up on learning an application.

Maybe you are looking for

  • Function call in FormCalc

    I am trying to call a function (type4) from within a FormCalc exit event: if ($.rawValue <> "2") then      type4.validate() endif But when I run the form, I get an error saying that the "script does not have a method 'validate'." My function definite

  • How to get triggering sql text in a statement trigger

    hi, I need to get sql text that run on the table in statement trigger on that table. I will log sql statements that run on table for a few weeks. I search for it, there is a ORA_SQL_TEXT function but this function is working on event triggers not sta

  • C Parser Functionality

    I would like to perform read and write functions on XML documents. For example, I would like to be able to Update a document within the database using a given criteria. Is it possible to do this ? Many thanks, Nigel null

  • MDB listening to an Oracle AQ, holding ADT messages...

    Hi !           I'm trying to set a MDB to listen for incoming messages on an Oracle AQ. When I created the queue, I specified that the queue should contain payload of type ADT. I'm using Bea Weblogic server 8.1sp4 and Oracle 10.2.0. The creation of t

  • Deleting Error Logs: It is fine to do it?

    Today my Messenger: Mac 8 Beta application crashed and created an error log, I sent it to apple. After that, I was able to find the location of the file in the system/library/logs/ in a "Error Diagnostic" (I don't remember the name of the folder) fol