Parallel Merge Sort – No memory allocation

I am implementing a parallel merge sort in C++ that is based off P-Merge-Sort algorithm from Introduction to Algorithms, CLRS on page 803. Here’s the algorithm: P-Merge-Sort

And the associated algorithms:



And my problem is that I am trying avoid creating a $ T[1 \, ..\, n]$ for each invocation of P-Merge-Sort. I am told that it should be done via global arrays. So I have tried utilizing a single array for working which is the same size as the array being sorted where it would be used as ‘B’ in P-Merge-Sort.

How can I make this work without dynamically allocating memory during Merge Sorting?

Memory Leak al renderizar un largo arreglo de Objetos con VueJS

estoy teniendo serios problemas de memoria al cargar una larga lista de objectos y al momento de renderizarla en mi aplicación VueJS, más precisamente en un V-FOR anidado, queda así:

<div id="contenido" ref="refContenido" class="q-mt-lg" v-show="votantes.length > 0">   <div class="row q-mb-sm" v-for="(item, index) in votantes" :key="index">     <div class="col-12 text-bold bg-teal-3" style="height: 35px; line-height: 35px; border: 1px solid black;">       <p class="q-ml-sm">Provincia: {{ item.provincia }} ({{ CountByProvincias(item.municipios) }})</p>     </div>     <div class="col-12" v-for="(muns, idx1) in item.municipios" :key="idx1">       <div class="row">         <div class="col-12 text-bold" style="height: 35px; line-height: 35px; border: 1px solid black;"><p class="q-ml-sm">Municipio: {{ idx1 }} - ({{ CountElectores(muns) }})</p>         </div>         <div class="col-12">           <div class="row">             <div class="col-12 q-table-dense">               <table class="q-table q-table-horizontal-separator" style="border: 1px solid black">                 <thead>                 <tr class="text-center text-bold bg-primary">                   <th class="text-white">Nombres</th>                   <th class="text-white">Cédula</th>                   <th class="text-white">Teléfono</th>                   <th class="text-white">Recinto</th>                   <th class="text-white">Residencia</th>                 </tr>                 </thead>                 <tbody>                 <tr v-for="(voters, idx2) in muns" :key="idx2">                   <td class="text-center">{{ voters.nombres }}</td>                   <td class="text-center">{{ voters.cedula }}</td>                   <td class="text-center">{{ voters.telefono }}</td>                   <td class="text-center">{{ voters.recinto }}</td>                   <td class="text-center">{{ voters.municipioVive + ', ' + voters.provinciaVive }}</td>                 </tr>                 </tbody>               </table>             </div>           </div>         </div>       </div>     </div>   </div> </div> 

No logro indetificar en el Snapshot de Chrome, estoy seguro es la forma de cargar esa información, si es así por favor indíquenme la mejor manera de mostrar esa info.


Ubuntu seams to not free ram memory

i am using Ubuntu 19.04 in laptop with 12 GB of ram when i start the system everything is fast and responsive, and currently memory usage is about 1.5 up-to 2 gb of my ram occupied.

Then if i start heavy programs like android studio with emulator it take about 5 gb of ram and it running everything fast and smooth but after 2-3 hour of work still with same opened applications in the beginning memory is almost full and system is using swap file and everything get so slow. even after closing all programs systems remain slow.

PS:I asked some of my friends, which the have same issue some with like Vmware and heavy programs.

How to regain control of your system when it runs out of memory?

Suppose your system only has 4GB of memory (not much in 2019), and you are running Ubuntu 18.04 (64 bit). You have a couple of tabs open in Firefox, a few tabs in a terminal are running some scripts, and then you “carelessly” decide to start a video editor, do a few edits and bang!, you suddenly run out of memory. Your system becomes totally unresponsive, you can’t move the mouse or launch a terminal window to kill something to free up memory, and Ctrl+Alt+Del doesn’t do anything either. Your system’s only sign of life is the noise the disk makes while being busy trying to swap things without end.

What can you do in this situation, other than tapping your power switch? I read somewhere that when you run out of memory, Linux will start killing processes at random, but I’ve never experienced that ever happen.

How to avoid too much RAM memory usage

I use Ubuntu Studio 18.04.3 with additional backports PPA to get LTS.

I want to use “xLogo”, a Java version of the old Logo Programming Language, to get 3D figures in the screen.

But, when xLogo is working, I get a message about it is using almost the 90% of the computer RAM memory.

And I can confirm this is true, because the System Charge Monitor shows me the same thing: RAM Memory at 90%!

How can I get xLogo “eats” less RAM memory?

BTW: The System Charge Monitor is always shows me that my RAM Memory is around 60% to 65% used. Is it a normal value? Can I get more free RAM Memory? How?