Questions tagged as 'heap'

2
answers

Are variables declared within blocks or subprograms allocated dynamically?

I'm reading the book "Algorithms and Programming with Examples in Pascal and C" and in it there are two paragraphs that left me in doubt, they are:   Two alternative forms are offered by some programming languages to manage dynamic allocation...
asked by 06.03.2018 / 17:23
1
answer

how to write a name using pointers

I need a program that uses heap memory to store any name. we have the number of characters in the name and then the name, for example: 32 Josefina Penacho Reis dos Santos The output should be the name, in this case: Josefina Penacho...
asked by 05.06.2015 / 00:15
1
answer

How to implement a priority queue that still meets other requirements?

I need to implement a priority queue, this queue in addition to the priority, needs to take into account some other requirements, such as switching between services and professionals, in addition to respecting the customer's order of arrival for...
asked by 02.07.2017 / 15:46
0
answers

Dynamic memory hosting [duplicate]

In the book I'm reading something like:    ... the compiler provides somewhere in memory a hosting space for that object, either in the memory space reserved for   local variables (stack), either in the memory space reserved for   data, eit...
asked by 14.08.2018 / 14:39
0
answers

How to configure xms and xmx directly in the project?

Hello, I'm having an issue with "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space ", I ran a search and found that the solution to this is to increase the parameter and "xmx" , but I was only able to increase these parameters to th...
asked by 07.05.2018 / 05:46
0
answers

Position of the first element in a Heap object

I'm in doubt about the heap priority queue, regarding inserting elements in this list. Does each heap start by inserting the element vetor[1] ? Or should you enter from vetor[0] ? Because I have a heap that inserts into vet...
asked by 27.05.2017 / 16:59
0
answers

PDF Java memory overflow

Hello, good evening. I'm having memory overflow issues in a java application while generating +/- 1000 PDF's in a loop. In this application, to generate the PDF a proprietary framework is used, where I can not access in "how the PDF is gen...
asked by 09.03.2017 / 04:21