Comparison insertion/search time between different Collection class

Hi,
Does someone know where I can find a clear an complete comparison between different JAVA class which implements interface Collection?
I want to compare:
- elements insertion time
- elements search/removal time
Thank you very much in advance
Diego

from wikipedia: Its purpose is to characterize a function's behavior for very large (or very small) inputs in a simple but rigorous way that enables comparison to other functions.
meaning if I ask how quick an algorithm is you might say it completes in 10 seconds but the next time you run it it might take 8 seconds. It kind of depends on what else your computer is doing/ how fast your computer is or how much data you are putting through ie if the puter has little memory it might need to use virtual memory which will have an effect on your performance.
Big O notation identifies how much work has to be carried out. The easiest example is a simple search of an array:
for (int i = 0; i < array.length; i++) {
  if (array[i] == "weijewr") {
    return i;
}Where n represents a number of elements:
This takes O(n) (big Oh of N) as potentially you need to look at each element.
if you were to write a standard bubble sort it would be O(n2) as potentially you need to iterate the array once for each element.

Similar Messages

  • Presence search option between different container

    Greeting all
    I notice if i belongs to cn A in AD and another user is in cn B in AD, i can`t find him using the search option via my cupc
    PS: i`m using Presence version 8 and cupc v8
    any thoughs how to fix that
    thx

    Hi,
    What is your search context in CUPS LDAP profile ?
    Please check under CUPS server administration --> Application --> Unified Personal Communicator --> LDAP profile
    You should have a proper search context like,
    dc=XYZdomain,dc=com
    or
    dc=XYZdomain,dc=com;&(objectclass=user)
    or
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    ou=xyz,dc=XYZdomain,dc=com
    or
    if you have multiple OU's you can set it as,
    ou=test,dc=cisco,dc=com#ou=testone,dc=cisco,dc=com#ou=testtwo,dc=cisco,dc=com
    Whenever you change the search context and save you would need to logout and login back from CUPC..
    Please refer for more info,
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/srnd/7x/presence.html#wp1084996
    http://msdn.microsoft.com/en-us/library/aa746475.aspx

  • Difference between different Context classes

    Adler_Steven always used this:
    // Create the initial directory context
    LdapContext ctx = new InitialLdapContext(env,null);
    I use this:
    DirContext ctx = new InitialDirContext(env);
    both methods work for changing a password...
    Can someone explain that to me please?

    From the JNDI tutorial,
    http://java.sun.com/products/jndi/tutorial/getStarted/
    overview/ldap.html the ldap class allows you to use
    specific ldap features such as the extended controls
    etc.ok so only using these extended tools forces me to make an instanz variable ctx of the InitialLdapContext, thank you i have understood it.

  • Idoc data  comparison between different R/3 clients.

    Hi ppl ,
    Is there a way idoc comparison can be done between different clients without going
    by Segment by Segment comparison ?
    I have a requirement wherein i have thousands of idocs in QA system and i need to
    compare those with the ones in PROD system. The segments in the idocs may vary
    depending on the data that flows from the third party system which will post idocs in R/3.
    So, the segment wise comparison of data is also ruled out .
    Do we have any standard reports which will help in achieving this purpose ?
    Please let me know how the idoc data comparison can be carried out .
    Regards,
    Nick.

    Hi Nick,
    There is no standared tools available for comparing the data of two idocs.
    By using beyond compare s/w you can check the data, but the thing is you have to download the idoc data to file format.
    By using Idoc_xml_transform function module you can download idoc data to xml format, after you can compare.
    Check this
    http://download.cnet.com/Beyond-Compare/3000-2242_4-10015731.html
    Regards
    Ramesh

  • Collection class comparation

    Dear all,
    Could you tell me the performance benmark comparation between the collection class (List, Map, Set, Queue, and also class in java.util.concurrent package...)
    Could you give me when to use one class?
    Thank a lot for support.
    Best regards,
    VKnight

    VKnight wrote:
    Dear all,
    Could you tell me the performance benmark comparation between the collection class (List, Map, Set, Queue, and also class in java.util.concurrent package...)There is no "fastest collection." Different collections have different big-O performance metrics in different situations. You'll learn what these are when you learn about the collections.
    Could you give me when to use one class? When you study the collections and learn what each one does, you'll understand which one is appropriate to use in which case.
    There's plenty of information already available for these very broad questions, in books and on the web. There's no point in somebody repeating it here. After you've done your research, if you have a more specific question, feel free to ask.

  • Insert, search, delete performance overhead for different collections

    Hi,
    I am trying to create a table which compares performance overheads for different collections data structures. Does anyone want to help me out? I want to put a number from 1 - 9 in each of the question marks. 1 being very poor performance and 9 being very good performance (the reason I am doing this is that I had this question in a job interview test and I didn't pass it)
    anyone have any comments?
              Searching     Inserting     Deleting     
    ArrayList ? ? ?
    LinkedList ? ? ?
    TreeSet ? ? ?
    TreeMap ? ? ?
    HashMap ? ? ?
    HashSet ? ? ?
    Stack ? ? ?

    sorry the formatting has screwed up a bit when I posted it. It should have a list of the collection types and three columns (inserting, deleting, searching)

  • HT1203 i have tried this 6+ times to "How to share music between different accounts on a single computer" on my wifes mac and can not get it to work!! On my PC no problem but on the MAC it will not work, follow the instructions to the T but no go????

    i have tried this 6+ times to "How to share music between different accounts on a single computer" on my wifes mac and can not get it to work!! On my PC no problem but on the MAC it will not work, follow the instructions to the T but no go????

    It is almost as if the program does not exist on my computer. If I search for it, the only thing that comes up is the installer. I cannot find it anywhere despite the fact I have installed it numerous times, uninstalled it and conducted a fresh install, and the Adobe website checks says that it is installed.

  • Automatic Deployment Rule - One ADR for Two Different Collection for Two Different time Intervals

    I have a scenario where two collection of Windows 8.1 is made based on geographical location. One collection is for all the windows 8.1 machines in India and one collection is for all windows 8.1 machines in US. Now I have created one ADR to be deployed
    to the Collection for Machines in India with a schedule.
    My requirement is that can i use the same ADR for those two collection with different schedule. Say I want ADR to be deployed in India at say 10:PM IST and for US collection at say 10:00 PM PST.
    Can I use one ADR with two different schedule and can be deployed to two different collection. Any help will be greatly appreciated.
      

    Couple of "bits" to help you one your patch automation quest:
    A ADR is very much a 1:1:1 rule.  It creates (or updates) ONE update group, deploys it to ONE collection, and you can provide ONE schedule.  While you are more than capable of flipping said deployment time to use local time instead of UTC, in general
    it's a very simple set of rules that are dogmatically run.
    That said because of the "include" feature of collections it's not that hard to setup a good/robust patching pattern.  What I recommend doing is building an ADR for each variance of deployment of patches or enforcement time.  for example,
    my ADRs look something like this:
    Software Updates - Zero day enforced
    Software Updates - Critical and Security 1 month enforced
    Software Updates - Critical and Security 1 month no reboots
    Exact terminology is up to you of course, but I find a good descriptive ADR name saves a lot of confusion.  For each ADR I create an identical collection.  From there I can use existing collections and a simple "include collection" rule
    to bundle things up and make them part of the patching schedule of my choice.  Anyone can now go into my "software update" folder, look at my collections, and know exactly what gets patched by what deadline.
    Finally, don't be afraid to look into maintenance windows to trim down ADR count.  Making a deployment available for a month before it goes enforced, then setting up groups of maintenance windows (one for each Friday of the week for example) can also
    accomplish a similar goal by having machines auto-patch during their week but you only using one ADR.
    So by having two "types" of collections to manage your patching (one to assign a ADR built by deployment deadlines, the other for exact update windows) you should be able to group most your workstations into a decent patch scheudle without being
    too excessive about creating a billion ADRs.

  • Switching between different run-time menu programati​cally

    Hi All
     I am planning to build a Bilingual program…….am just doing trial and errors in changing all captions and run-time menu s programmatically with a single button click……….Here my logic is working fine for all captions and graphs also…………..but I could not change the run-time menu……….i am unable to switch between different run-time menus……………
    Here I am sending the program am working on………..please have a look on this, and suggest me something………….hope my problem get resolved.
    Thanks
    Anil Punnam
    Attachments:
    Caption_program.ZIP ‏31 KB

    Hi Anil,
    I'm guessing you're using 7.1?  When I first ran your program in 8.0, it worked perfectly and switched back and forth perfectly.  However, I tried it in 7.1 and saw some bad behavior.  The customer run time menu was not updated in the menu bar.  It looks to me like the run time menu is changing, but the front panel is not updating.  After pressing one of your front panel buttons to change the run-time menu back and forth, if you click on the file menu it should update, although this can lead to some funny looking menus since "affiche" is longer than "file" and you can still see the remnants of the old menu.  Try this and let me know if this is indeed the behavior you are seeing (check out the attached pic).  I thinkt hat R&D already had a report on this, and that is why it is fixed in 8.0.
    Megan B.
    National Instruments
    Attachments:
    RTM.JPG ‏34 KB

  • Searching time machine backup on different computer

    I have 3 computers backed up by time machine onto one hard drive. How do I search time machine for a backup of a computer I am not currently using? I did use the control key and was prompted for which disk to search,and clicked on that, but then it just switches me back and only shows the backups of the same computer I am using at the moment. I want to search a time machine backup of a computer that is no longer functional.

    This was actually solved in the 10.7.1 or 10.7.2 update.

  • I installed the latest version of ibooks on my ipad. I have about 50 different collections of scanned pdf's. I can only view up to the letter M. Any idea where the rest went? These are client files. Help!!!

    I installed the latest version of ibooks on my ipad. I have about 50 different collections of scanned pdf's. I can only view up to the letter M. Any idea where the rest went? These are client files. Help!!!

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • Sharing music between different accounts - is this how it works?

    The way iTunes shares music between different users seems a bit poor.
    I have two user accounts set up on the same PC, with music files accessed by each from the same folder (as described here: How To Share Music Between Different Accounts On A Single Computer).
    My main issues are:
    1) I have to manually add new music added by the other user instead of it just appearing in iTunes.
    2) iTunes doesn't recognise if a music file is already in the joint library, so we end up with two copies of things (particularly tiresome for podcasts).
    Am I doing something wrong - maybe there is an easy way around this?
    ... or do the people at Apple need to do a bit of work here?
    Pentium 4   Windows XP  

    By default, any new file or folder created is set to be read+write for the creator, and read-only for everyone else. The file creator can grant write access to other users by changing the permissions on a folder and its contents, as Neil suggests. But you'll have to repeat that process every time a new file is added.
    Fortunately, there is a way to automatically grant read+write access to all files created or copied to the folder. First go to System Preferences -> Accounts. Click the + button under the users list. Then, make a new group; calling it "sharegroup" or something similar. Add the users you want to the group.
    Then put all the files you want to share into a commonly-accessible folder, such as a subfolder in /Users/Shared.
    Then log in to an admin account and open Terminal. Paste in the following two lines:
    sudo chmod -R +a "sharegroup allow delete,chown,list,search,add_file,\
    addsubdirectory,delete_child,file_inherit,directoryinherit" \
    Press return, then drag the folder into the Terminal window, and press return again. Enter admin password when prompted and press return. That should do it. Everything there now should be fully writable by all users in sharegroup. New files that are *created in* or *copied to* the folder will be the same way.
    Files that you *move in* from a different location on the same hard drive won't be, though. So make sure you copy previously existing files into the sharefolder instead of moving them (hold down option key while dragging to copy) so that they get the custom permissions applied.

  • How to keep waiting time between processed messages !!

    Hi Folks,
    I have got one scenario required waiting time between processed messages. The problem as follows !!
    File --> Proxy scenario. I receive 15 messages from sender side (same messages structure) so working with one interfaces. File picking and transforming this message and split into 2 messages. messages are receiving to receiver. I am using BPM with 7,8 steps like receiving step, block , message transformation step , internal block 1 for sender 1, internal block 2 for sender 2.
    All things are working fine, messages are going to receiver properly. But customer requirement is , wait step required between processed messages before sender1. I have put wait step still, PI picks all messages in one shot processing and waiting for 2 minutes, after 2 minutes sending all messages at the same time, this process is not working.
    I have tried with wait step in mapping (Sarvesh) given excellent idea, still PI works the same way.
    Can someone please explain a bit why the messages or not waiting message by message. I am using EOIO with Queue name and file process mode "BY NAME" and I have tried "BY TIME" as well. I have given priority to this Queue. On BPM Queue assignment : One Queue.
    Please I am expecting positive answer !!
    Many Thanks in Advance
    San

    Hi Rudolf Yaskorski ,
    Not sure about your PI release and BPM model, do you create separate process instance for each file, or do you process files collecting them in one single instance? Are you using parallelization within your ccBPM ?
    I am using serialization, I don't think bpm can do Parallization until PI 7.0, but PI 7.11 has got has queue assignment. But I am using one queue. This must be serialization.
    To me it looks like your issue is not in ccBPM but rather more in polling files (as per your post file CC polls all 15 files in one shot). So if you wish to poll the files not at the same time some workaround is required. Possible options you could check out:
    A. Either implement "wait" in your mapping based on file name or other criteria (e.g. directory name). Check out if respective BPM instances are really created at different times.
    I have used wait step in mapping. These 15 messages has to go through one interface. So I am using one interface. But I have checked mapping process time in all messages on receiver system. Shows same timing, even though I put 40000 ms waiting time in mapping.
    B. Try polling different files (or use different directories) with different channels and coordinate starting / stopping of your channels by scheduling availability for each CC in RWB. E.g. you poll file 1 with CC 1. You start 2 minutes later CC 2 and poll file 2. And so on.
    I am not clear about this . On BPM waiting step is working and it keeps wait all messages, which are coming through one interface. Then it releases all messages at the same time.
    I don't know how to resolve this. I have tried with Transport acknowledgment, but all messages are going to reciver system waiting at receiver system in priority queue and processing in EOIO, but taking so long. Rather all messages go and sits in queue, I want to stop messages by message with 2 minutes time gap. How please?
    Kind Regards
    San

  • [SOLVED]Simple file transfer between different os'es

    Hi
    I'm searching for some kind of simple file transfer between different computers/os (mainly arch and windows) on local net, without I have to set up any samba/ftp server etc. It would be perfect if i could select a file I want to transfer and then be able to receive it on a different computer.
    So far I've tried giver but I most of the times they can't find each other.
    Any know how I could archive something like the a bow?
    Thanks
    Last edited by zann (2012-12-07 01:43:44)

    Try using simple file sharing through http server 'oneliner's.
    - Note your host IP (which I refer to by "ip.of.your.server"),
    - Go under your directory where you want to share files and fire a command line :
    Using python : python2 -m SimpleHTTPServer 8000
    And you can access your files on the network using http://ip.of.your.server:8000/
    Using php : php -S localhost:8080 -t webrootpath/
    Files under webrootpath/ will be accessible from http://ip.of.your.server:8888/
    Using mongoose : mongoose -r . -p 8888
    Files will be accessible from http://ip.of.your.server:8888/
    You may restrict access, ie.:  -l -0.0.0.0/0,+10.60.100.105
    And have access/error logging (à la apache) too : -a access_log.txt -e error_log.txt
    NB.: You may install python or php under windows but mongoose is the easiest thing when it comes to windows -> linux.
    Last edited by xpixelz (2012-12-04 15:01:40)

  • Keyboard switch between different languages

    Does anyone know if the BB10 keyboard will feature an easy switch between different languages that will preserve the anticipation of words used frequently/etc?
    Solved!
    Go to Solution.

    nouaspe wrote:
    That's great - thanks a lot. Is that a basic feature? Is there a list of languages (if one is looking for one with less circulation)?
    yes, it is a basic feature. I frequently switch from French to English and no problem, it is almost magical.
    Languages I have on my Z10 (sorry if I make typos, I have not found a page with the list correctly written)
    Arabic (I don't know which, but it is from right to left)
    Catalan
    Cestina
    Dransk
    Deutch
    Greek
    English UK
    English
    Espanol
    Euskara
    Suomi
    Français
    Galego
    Hebrew
    Hrvatski
    Magyar
    Bahasa Infonesia
    Italiano
    Norsk
    Nederlands
    Portugues (Brasil)
    Portugues (Europeu)
    Polski
    Romana
    Russian
    Svenska
    Thai
    Tiêng Viêt
    Türkçe
    Chinese (simplified)
    Chinese (traditional)
    as you can see:
    Japanese is lacking, because BlackBerry has decided to not sell the Z10 in Japan (they currently have a 0.3 marketshare, the market is mainly dominated by local brand like Sony or Anycall)
    This time, RIM did things right and Arabic & Chinese are available from day 1
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

Maybe you are looking for

  • Additional field in contact Backup Nokia 9500

    I want to take my nokia 9500 to repair a broken hindge! I have backed up my data onto memory card but it seems that an addional fields that created in Contact such as note is not backed up. How do you make sure any additional field is secured and cou

  • Cannot open old pdfs -- can anyone help?

    Hi, I have a CD with some PDFs that were created in 2004 and cannot get them to open. I get the dreaded "...is either not a supported file type or because the file has been damaged..." message, which seems to result from a number of causes, none of w

  • Seconds to Shift and Hour and Mins

    Hi, I have 88000 Seconds. Every 8 Hours we have Shift. How to identify how many shifts , Hours and Mins are available in 88000 Seconds. I want to display like using Sqlserver. Example 4 Shifts 3 Hours 33 Mins raghu

  • Why are the pictures in Windows Live / Skydrive photo albums not visible ?

    Icons are grey. Pictures are visible with IE9.

  • Setting personal domain

    A rookie question here, but can someone "walk" me through this process? Who is my registrar? Where is my registrar? Thanks in advance!! Add Personal Domain Before your iWeb site can be viewed at your personal domain, you must complete the following s